Пример #1
0
 public ActionResult <List <PerfilDTO> > GetAll()
 {
     try
     {
         return(_perfilAppService.GetAll());
     }
     catch (Exception)
     {
         return(BadRequest());
     }
 }
Пример #2
0
 public ActionResult <IEnumerable <string> > GetAll()
 {
     try
     {
         return(Ok(_perfilAppService.GetAll()));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #3
0
 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));
        }