mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 20:40:55 +00:00
Сделал добавление картриджей через форму
This commit is contained in:
1 parent
70bfae943b
commit
10c499e671
27 files changed
+922
-36
No files matched your search
@@ -0,0 +1,12 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user