Подлатал API и Web

This commit is contained in:
Hukuta committed 2026-05-06 22:32:22 +09:00
1 parent ae561f8311
commit 34868984fb
26 files changed
+435 -104

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
using CartriX.Api.Interfaces;
using CartriX.Shared.Classes;
using CartriX.Shared.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Migrations.Operations;
namespace CartriX.Api.Services
{
public class LocationService : ILocationService
{
private readonly AppDbContext _context;
public LocationService(AppDbContext context)
{
_context = context;
}
public async Task<List<Location>> GetAll()
{
var query = await _context.Locations.Include(l => l.printers).ToListAsync();
return query;
}
}
}