mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Слегка изменил сущности Добавил страницу в Web Сделал компонент с карточками для принетров
11 lines
398 B
C#
11 lines
398 B
C#
using CartriX.Shared.Models.Location;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace CartriX.Api.Controllers.Location
|
|
{
|
|
public class LocationService(AppDbContext _context) : ILocationService
|
|
{
|
|
public async Task<List<Entities.Location>> List() => await _context.Locations.Include(l => l.Printers).ThenInclude(p => p.Model).ThenInclude(m => m.Manufacturer).ToListAsync();
|
|
}
|
|
}
|