public JsonResult Delete(int id) { currency dbItem = RepoCurrency.FindByPk(id); ResponseModel response = new ResponseModel(true); string message; //if (!RepoCurrency.IsAllowDelete(dbItem)) //{ // message = HttpContext.GetGlobalResourceObject("MyGlobalMessage", "DeleteFailedForeignKey").ToString(); // response.SetFail(message); //} //else // RepoCurrency.Delete(dbItem); return Json(response); }
public JsonResult Delete(int id) { string template = ""; ResponseModel response = new ResponseModel(true); m_project dbItem = RepoMProject.FindByPk(id); RepoMProject.Delete(dbItem); return Json(response); }
public JsonResult Delete(int id) { string template = ""; ResponseModel response = new ResponseModel(true); company dbItem = RepoCompany.FindByPk(id); RepoCompany.Delete(dbItem); return Json(response); }
public JsonResult DeleteWhitelist(int id) { string template = ""; ResponseModel response = new ResponseModel(true); Crew_Whitelist dbItem = RepoWhite.FindByPk(id); RepoWhite.Delete(dbItem); return Json(response); }
public JsonResult DeleteCrew(string barcode) { string template = ""; ResponseModel response = new ResponseModel(true); Crew dbItem = RepoCrew.FindByPk(barcode); RepoCrew.Delete(dbItem); return Json(response); }
public JsonResult Delete(int id) { string template = ""; ResponseModel response = new ResponseModel(true); tbKaryawan dbItem = RepoKaryawan.FindByPk(id); RepoKaryawan.Delete(dbItem); return Json(response); }