예제 #1
0
        // GET: Persona/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var persona = await _personaRepository.GetById(id);

            if (persona == null)
            {
                return(NotFound());
            }

            return(View(persona));
        }
예제 #2
0
        public async Task <Personas> GetPersonaById(long id)
        {
            var persona = await _personaRepository.GetById(id);

            return(persona.Result);
        }
 Sg02_Persona ObtenerPersonaId(long id)
 => _personaRepository.GetById <Sg02_Persona>(id);
예제 #4
0
 public PERSONA GetById(string Id)
 {
     return(_personaRepository.GetById(Id));
 }