public PartialViewResult RemoveExperience(int id) { var experience = new Models.Experience() { ID = id }; var tblExperience = new TblExperience(); tblExperience.Delete(experience); return PartialView("_PartialExperience", tblExperience.GetAll()); }
public PartialViewResult InsertExperience(Models.Experience data) { var experience = new Models.Experience() { Position = HttpUtility.UrlDecode(data.Position), Corporation = HttpUtility.UrlDecode(data.Corporation), Date = HttpUtility.UrlDecode(data.Date), Description = HttpUtility.UrlDecode(data.Description) }; var tblExperience = new TblExperience(); tblExperience.Add(experience); return PartialView("_PartialExperience", tblExperience.GetAll()); }