Exemplo n.º 1
0
        public ActionResult CreatePlan(string title, string description, decimal cost, string group, string planfor)
        {
            int    retValue = -1;
            string msg      = "Error! while create plan.";

            retValue = _admindata.CreatePlan(title, description, "1 month free trial", cost, 1, group, planfor, "insert");

            if (retValue >= 1)
            {
                msg = "Plan create successfully";
            }

            return(Json(msg, JsonRequestBehavior.AllowGet));
        }