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

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