コード例 #1
0
        public ActionResult DeletePriceGroup(int?id = null)
        {
            if (!caSession.AuthoriseSession())
            {
                return(Redirect((string)Session["ErrorUrl"]));
            }

            var result = _productPriceService.DeleteProductGroupById(id ?? 0, CurrentUserId);

            return(Json(new { Success = result, Message = result ? "Success" : "Please make sure the price group is not used by any accounts." }, JsonRequestBehavior.AllowGet));
        }