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