예제 #1
0
        public JsonResult Insert_Customer(CustomerVM CustomerVM)
        {
            bool result = false;

            string msg = "Failed to save record..";

            result = CustomerMethods.Insert_Customer(CustomerVM, Session["DealerCode"].ToString(), ref msg);

            if (result)
            {
                msg = "Successfully Added";
            }

            return(Json(new { Success = result, Message = msg }, JsonRequestBehavior.AllowGet));
        }