Example #1
0
        public ActionResult List(int pageIndex)
        {
            var query    = new StoresQueryRequest(pageIndex, PageSize, CurrentUser.Id);
            var response = _storeQueryService.GetStores(query);

            return(View("List", response));
        }
Example #2
0
        private void FillStores()
        {
            var query    = new StoresQueryRequest(1, 20, CurrentUser.Id);
            var response = _storeQueryService.GetStores(query);

            ViewBag.Stores = response.Stores;
        }
Example #3
0
        /// <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));
        }
Example #4
0
        /// <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));
        }
Example #5
0
        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));
        }
Example #7
0
        public PartialViewResult BestSellings()
        {
            var query    = new StoresQueryRequest(1, 20);
            var response = _storeQueryService.GetStores(query);

            return(PartialView("BestSellings", response));
        }
Example #8
0
        public ActionResult List(string keyword)
        {
            var query  = new StoresQueryRequest(keyword);
            var stores = _storeQueryService.GetStores(query);

            return(View("List", stores));
        }
Example #9
0
        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));
        }
Example #10
0
        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));
        }