Junior — Middle
Could you share your experience working with the C# language and projects where you used this language?
sobes.tech AI
Answer from AI
In my projects with C#, I mainly worked on developing web applications using ASP.NET Core and desktop applications with WPF. For example, I created an order management system, where I implemented a REST API for interaction with the frontend and the database through Entity Framework Core. I also used LINQ for convenient collection handling and asynchronous programming with async/await to improve performance.
Here's an example of a simple C# method with an asynchronous database query:
public async Task<List<Order>> GetOrdersAsync()
{
using(var context = new AppDbContext())
{
return await context.Orders.Where(o => o.Status == "Active").ToListAsync();
}
}