public async System.Threading.Tasks.Task <ActionResult> CheckBrandname(string Name, string PreviousBrandname) { if (Name == PreviousBrandname) { return(Json(true, JsonRequestBehavior.AllowGet)); } bool check = Commonhelper.CheckBrandname(Name); if (check) { return(Json(false, JsonRequestBehavior.AllowGet)); } else { return(Json(true, JsonRequestBehavior.AllowGet)); } }