mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 04:20:55 +00:00
13 lines
312 B
C#
13 lines
312 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace CartriX.Api.Controllers.Manufacturer
|
|
{
|
|
public class ManufacturerService(AppDbContext _context) : IManufacturerService
|
|
{
|
|
public async Task<List<string>> List()
|
|
{
|
|
return (await _context.Manufacturers.ToListAsync()).Select(m => m.Name).ToList();
|
|
}
|
|
}
|
|
}
|