Example #1
0
 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));
        }
Example #3
0
 public IActionResult Index()
 {
     return(View(storeAppService.GetAll()));
 }