Пример #1
0
        public JsonResult Checkcategoryname(string Name, string Previousname)
        {
            if (Name == Previousname)
            {
                return(Json(true, JsonRequestBehavior.AllowGet));
            }
            bool check = Commonhelper.Checkcategoryname(Name);

            if (check)
            {
                return(Json(false, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(true, JsonRequestBehavior.AllowGet));
            }
        }