public ActionResult <List <PerfilDTO> > GetAll() { try { return(_perfilAppService.GetAll()); } catch (Exception) { return(BadRequest()); } }
public ActionResult <IEnumerable <string> > GetAll() { try { return(Ok(_perfilAppService.GetAll())); } catch (Exception ex) { throw ex; } }
public IActionResult Get() { return(Response(_perfilAppService.GetAll())); }
public ActionResult Perfis() { return(PartialView("PerfilPopUp", Mapper.Map <IEnumerable <Perfil>, IEnumerable <PerfilViewModel> >(PerfilApp.GetAll()))); }
public ActionResult Index() { PodeLer(); var perfilViewModel = Mapper.Map <IEnumerable <Perfil>, IEnumerable <PerfilViewModel> >(PerfilApp.GetAll()); return(View(perfilViewModel)); }