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

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