Exemplo n.º 1
0
        public JsonResult Discounts(Guid storeId)
        {
            var query    = new DiscountQueryRequest(storeId);
            var response = _discountQueryService.GetAllDiscounts(query);

            return(Json(response.Discounts));
        }
Exemplo n.º 2
0
        public PartialViewResult Discounts(Guid storeId)
        {
            var query    = new DiscountQueryRequest(storeId);
            var response = _discountQueryService.GetAllDiscounts(query);

            return(PartialView(response));
        }
Exemplo n.º 3
0
        /// <summary>
        /// List of all dicount template of the current user
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <returns></returns>
        public ActionResult List(int pageIndex)
        {
            var query    = new DiscountQueryRequest(pageIndex, PageSize);
            var response = _discountQueryService.GetAllDiscounts(query);

            return(View("List", response));
        }
Exemplo n.º 4
0
        public ActionResult List()
        {
            var query     = new DiscountQueryRequest(1, 20);
            var discounts = _discountQueryService.GetAllDiscounts(query);

            return(View(discounts));
        }