Junior — Middle
Can you tell about your experience in developing and using .NET platform technologies?
sobes.tech AI
Answer from AI
In my work with the .NET platform, I developed applications in C#, using technologies such as ASP.NET for web development and Entity Framework for database interactions.
My experience includes:
- Creating REST APIs for client-server communication.
- Implementing business logic and data access layers.
- Using LINQ for convenient and efficient work with collections and databases.
Example of a simple controller in ASP.NET Core:
[ApiController]
[Route("api/[controller]")]
public class ProductsController : ControllerBase
{
private readonly ApplicationDbContext _context;
public ProductsController(ApplicationDbContext context)
{
_context = context;
}
[HttpGet]
public IEnumerable<Product> Get()
{
return _context.Products.ToList();
}
}
This code demonstrates a basic way to retrieve a list of products from the database via an API.