public ActionResult UpdatePlan(SubscriptionsPlan planObject) { try { var result = _adminServices.UpdateSubscriptionsPlan(planObject); return(Json(result, JsonRequestBehavior.AllowGet)); } catch (Exception) { return(Json(false, JsonRequestBehavior.AllowGet)); } }
public bool AddSubscriptionsPlan(SubscriptionsPlan plan) { try { _subscriptionPlanRepo.Add(plan); _unitOfWork.Commit(); return(true); } catch (Exception) { return(false); } }