Пример #1
0
        public async Task <IActionResult> GetByPersona(int id)
        {
            var persona = await _rep.GetById <Persona>(id);

            var personaReturn = _mapper.Map <MiembrosViewModels>(persona);

            return(View(personaReturn));
        }
Пример #2
0
        // GET: Miembros/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var persona = await _context.GetById <Persona>(id);

            var personaViewModels = _mapper.Map <PersonaViewModels>(persona);

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

            return(View(personaViewModels));
        }