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)); }
public IEnumerable <AddressViewModel> GetAll() { return(_iAddressAppService.GetAll()); }
public IActionResult Index() { return(View(_addressAppService.GetAll())); }