Esempio n. 1
0
        public ActionResult List(string keyword)
        {
            var query  = new StoresQueryRequest(keyword);
            var stores = _storeQueryService.GetStores(query);

            return(View("List", stores));
        }
Esempio n. 2
0
        public ActionResult List(int pageIndex)
        {
            var query    = new StoresQueryRequest(pageIndex, PageSize, CurrentUser.Id);
            var response = _storeQueryService.GetStores(query);

            return(View("List", response));
        }
Esempio n. 3
0
        /// <summary>
        /// List of All stores
        /// </summary>
        /// <returns></returns>
        public ActionResult List(int pageIndex)
        {
            var query  = new StoresQueryRequest(pageIndex, PageSize);
            var stores = _storeQueryService.GetStores(query);

            return(View("List", stores));
        }
Esempio n. 4
0
        private void FillStores()
        {
            var query    = new StoresQueryRequest(1, 20, CurrentUser.Id);
            var response = _storeQueryService.GetStores(query);

            ViewBag.Stores = response.Stores;
        }
Esempio n. 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));
        }