using Microsoft.EntityFrameworkCore; namespace CartriX.Api.Controllers.Location { public class LocationService(AppDbContext _context) : ILocationService { public async Task> List() => await _context.Locations.Include(l => l.Printers).ToListAsync(); public async Task> PrintersList(int LocationId) => await _context.Printers.Include(p => p.Status).Include(p => p.Model).Where(p => p.Location.Id == LocationId).ToListAsync(); } }