public ActionResult List(int pageIndex) { var query = new StoresQueryRequest(pageIndex, PageSize, CurrentUser.Id); var response = _storeQueryService.GetStores(query); return(View("List", response)); }
private void FillStores() { var query = new StoresQueryRequest(1, 20, CurrentUser.Id); var response = _storeQueryService.GetStores(query); ViewBag.Stores = response.Stores; }
/// <summary> /// returns inactive stores /// </summary> /// <param name="pageIndex"></param> /// <returns></returns> public ActionResult Inactive(int pageIndex) { var query = new StoresQueryRequest(pageIndex, PageSize); var stores = _storeQueryService.GetInactiveStores(query); return(View("Inactive", stores)); }
/// <summary> /// returns inactive stores /// </summary> /// <param name="keyword"></param> /// <returns></returns> public ActionResult Inactive(string keyword) { var query = new StoresQueryRequest(keyword); var stores = _storeQueryService.GetInactiveStores(query); return(View(stores)); }
public HttpResponseMessage GetStores(string keyword) { var query = new StoresQueryRequest(keyword); var stores = _storeQueryService.GetStores(query); return(Request.CreateResponse(stores == null ? HttpStatusCode.NoContent : HttpStatusCode.OK)); }
/// <summary> /// List of stores of the user will be showed /// to choose from inorder to fill document for /// </summary> /// <returns></returns> public ActionResult Index() { var query = new StoresQueryRequest(CurrentUser.Id); var store = _storeQueryService.GetStores(query); return(View("Index", store)); }
public PartialViewResult BestSellings() { var query = new StoresQueryRequest(1, 20); var response = _storeQueryService.GetStores(query); return(PartialView("BestSellings", response)); }
public ActionResult List(string keyword) { var query = new StoresQueryRequest(keyword); var stores = _storeQueryService.GetStores(query); return(View("List", stores)); }
public ActionResult Discounted(int?pageIndex, string keyword) { var query = new StoresQueryRequest(pageIndex ?? 1, PageSize) { Keyword = keyword }; var response = _storeQueryService.GetDiscountedStores(query); return(View("Discounted", response)); }
public ActionResult BestSelling(int?pageIndex, string keyword) { var query = new StoresQueryRequest(pageIndex ?? 1, PageSize) { Keyword = keyword }; var response = _storeQueryService.GetBestSellingStores(query); return(View("BestSelling", response)); }