예제 #1
0
 public ActionResult <AddressDTO> GetAll()
 {
     try
     {
         return(Ok(_mapper.Map <IEnumerable <AddressDTO> >(_addressAppService.GetAll(this.User))));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex));
     }
 }
        public async Task <AjaxResponse <List <AddressDto> > > GetAll(long userId)
        {
            var res = await _appservice.GetAll(userId);

            return(new AjaxResponse <List <AddressDto> >(res));
        }
예제 #3
0
 public IEnumerable <AddressViewModel> GetAll()
 {
     return(_iAddressAppService.GetAll());
 }
예제 #4
0
 public IActionResult Index()
 {
     return(View(_addressAppService.GetAll()));
 }