public ActionResult Details(int id)
        {
            PodeLer();

            var perfil          = PerfilApp.GetById(id);
            var perfilViewModel = Mapper.Map <Perfil, PerfilViewModel>(perfil);

            return(View(perfilViewModel));
        }
예제 #2
0
 public ActionResult <string> GetById(int id)
 {
     try
     {
         return(Ok(_perfilAppService.GetById(id)));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #3
0
 public IActionResult Get(Guid id)
 {
     return(Response(_perfilAppService.GetById(id)));
 }