public ActionResult AddPromotionCategory(Promotion bs) { if (bs != null) { bs.Id = Guid.NewGuid(); promotionCategoryService.Add(bs); return Json(true, JsonRequestBehavior.AllowGet); } return Json(false, JsonRequestBehavior.AllowGet); }
public ActionResult EditPromotionCategory(Promotion bs) { if (bs != null && bs.Id != Guid.Empty) { promotionCategoryService.Update(bs); return Json(true, JsonRequestBehavior.AllowGet); } return Json(false, JsonRequestBehavior.AllowGet); }