public ActionResult GhiLai(HoSoCanBo canbo) { CanBoService _canbo = new CanBoService(); var result = _canbo.InsertOrUpdate(canbo); if (Request.IsAjaxRequest()) { return(Json(new { status = result != null })); } return(RedirectToAction("Index")); }
public ActionResult ViewHieuChinhCanBo(int?id) { CanBoService _canbo = new CanBoService(); HoSoCanBo canbo = new HoSoCanBo(); if (id.HasValue && id.Value != 0) { canbo = _canbo.FindByKey(id.Value); } return(PartialView("_HieuChinhCanBo", canbo)); }
public ActionResult ThemMoi(int?id) { CanBoService _canbo = new CanBoService(); var canbo = new HoSoCanBo(); if (id.HasValue && id.Value > 0) { canbo = _canbo.FindByKey(id.Value); } return(View(canbo)); }