public PartialViewResult RemoveAward(int id) { var award = new Models.Award() { ID = id }; var tblAward = new TblAward(); tblAward.Delete(award); return PartialView("_PartialAward", tblAward.GetAll()); }
public PartialViewResult InsertAward(string desc) { var award = new Models.Award() { Description = HttpUtility.UrlDecode(desc) }; var tblAward = new TblAward(); tblAward.Add(award); return PartialView("_PartialAward", tblAward.GetAll()); }
public PartialViewResult UpdateAward(int id, string desc) { var award = new Models.Award() { ID = id, Description = HttpUtility.UrlDecode(desc) }; var tblAward = new TblAward(); tblAward.Update(award); return PartialView("_PartialAward", tblAward.GetAll()); }
public PartialViewResult GetAwards() { var tblAward = new TblAward(); return PartialView("_PartialAward", tblAward.GetAll()); }