using Microsoft.EntityFrameworkCore; using REC_HUMA.CORE.Entities; using REC_HUMA.CORE.Interfaces; using REC_HUMA.INFRASTRUCTURE; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace REC_HUMA.INFRASTRUCTURE.Repositories { public class PaisRepo : IPaisRepo { private readonly RECHUMAContext _Context; public PaisRepo(RECHUMAContext Context) { _Context = Context; } public async Task> GetPaises() { try { var paises = await _Context.Pais.AsNoTracking().ToListAsync(); return paises; } catch (Exception ex) { throw; } } public Task PostPais(Pais pais) { throw new NotImplementedException(); } public async Task GetPais(int IdPais) { try { var pais = await _Context.Pais.Where(s => s.IdPais == IdPais).FirstOrDefaultAsync(); return pais; } catch (Exception ex) { throw; } } public Task DeletePais(int IdPais) { throw new NotImplementedException(); } public Task PutPais(Pais pais) { throw new NotImplementedException(); } } }