Exemple #1
0
        public async System.Threading.Tasks.Task <ActionResult> Checksubcategoryname(string Name, string Previousname)
        {
            if (Name == Previousname)
            {
                return(Json(true, JsonRequestBehavior.AllowGet));
            }
            bool check = Commonhelper.CheckSubcategoryname(Name);

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