public ActionResult List(string keyword) { var query = new StoresQueryRequest(keyword); var stores = _storeQueryService.GetStores(query); return(View("List", stores)); }
public ActionResult List(int pageIndex) { var query = new StoresQueryRequest(pageIndex, PageSize, CurrentUser.Id); var response = _storeQueryService.GetStores(query); return(View("List", response)); }
/// <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)); }
private void FillStores() { var query = new StoresQueryRequest(1, 20, CurrentUser.Id); var response = _storeQueryService.GetStores(query); ViewBag.Stores = response.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)); }