public ActionResult Addtemp(typebaker postData) { string status = ""; Classtypebaker _Classbaker = new Classtypebaker(); //todo: Add temp to repository if (postData == null) return Json(false); int baker = _Classbaker.checkbaker(postData.FNameTypeBaker); if (baker <= 0) { db.typebakers.Add(postData); db.SaveChanges(); return Json(true); } else { status = "this test"; return Json(new {status},JsonRequestBehavior.AllowGet); } /// return Json(true); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)