public IActionResult Get() { try { return(Ok(_appService.GetAll())); } catch (Exception) { return(BadRequest()); } }
// GET: /<controller>/ public async Task <ActionResult> Index() { var _stores = (await _storeAppService.GetAll(new PagedResultRequestDto { MaxResultCount = MaxNum })).Items; //Paging not implemented yet var model = new StoreListViewModel { Stores = _stores }; return(View(model)); }
public IActionResult Index() { return(View(storeAppService.GetAll())); }