public ActionResult kiemtra(string key) { SanPhamModel spm = new SanPhamModel(); if (spm.KiemTraTen(key)) { return(Json(true, JsonRequestBehavior.AllowGet)); } return(Json(false, JsonRequestBehavior.AllowGet)); }
public ActionResult kiemtra(string key) { SanPhamModel spm = new SanPhamModel(); if (spm.KiemTraTen(key)) { return(Json(true, JsonRequestBehavior.AllowGet)); } return(Json(false, JsonRequestBehavior.AllowGet)); }