Пример #1
0
 public ActionResult <IEnumerable <string> > GetAll()
 {
     try
     {
         return(Ok(_enderecoAppService.GetAll()));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
        // GET: Enderecos
        public ActionResult Index()
        {
            var enderecoViewModel = Mapper.Map <IEnumerable <Endereco>, IEnumerable <EnderecoViewModel> >(_enderecoApp.GetAll());

            return(View(enderecoViewModel));
        }
Пример #3
0
 // GET: api/Endereco
 public IEnumerable <EnderecoViewModel> Get()
 {
     return(Mapper.Map <IEnumerable <Endereco>, IEnumerable <EnderecoViewModel> >(_enderecoApp.GetAll()));
 }
Пример #4
0
 // GET: Endereco
 public ActionResult Index()
 {
     return(View(_app.GetAll()));
 }