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