public ViewResult Index(int? id) { //throw new Exception("Error in Details View"); People people = _people.GetPeople(id.Value); if (people == null) { Response.StatusCode = 404; return View("EmployeeNotFound", id.Value); } var q = people; ViewData["data"] = q; ViewBag.Header= "from viewbag"; return View(q); }
public void CacheEntries() { List <libTeamwork.models.Person> peopleList = _iPeople.GetPeople(); SaveEntries(peopleList); }