public PartialViewResult RemoveInterest(int id) { var interest = new Models.Interest() { ID = id }; var tblInterest = new TblInterest(); tblInterest.Delete(interest); return PartialView("_PartialInterest", tblInterest.GetAll()); }
public PartialViewResult InsertInterest(string desc) { var interest = new Models.Interest() { Description = HttpUtility.UrlDecode(desc) }; var tblInterest = new TblInterest(); tblInterest.Add(interest); return PartialView("_PartialInterest", tblInterest.GetAll()); }
public PartialViewResult UpdateInterest(int id, string desc) { var interest = new Models.Interest() { ID = id, Description = HttpUtility.UrlDecode(desc) }; var tblInterest = new TblInterest(); tblInterest.Update(interest); return PartialView("_PartialInterest", tblInterest.GetAll()); }
public PartialViewResult GetInterests() { var tblInterest = new TblInterest(); return PartialView("_PartialInterest", tblInterest.GetAll()); }