public ActionResult EnrollGrid(CurrentEnrollments m) { if (!m.Sort.HasValue()) m.Sort = "default"; DbUtil.LogPersonActivity($"Viewing Enrollments for: {m.Person.Name}", m.Person.PeopleId, m.Person.Name); return View("Enrollment/Current", m); }
public ActionResult EnrollGrid(int id, int? page, int? size, string sort , string dir) { var m = new CurrentEnrollments(id); m.Pager.Set("/Person2/EnrollGrid/" + id, page, size, sort ?? "default", dir ?? "asc"); DbUtil.LogActivity("Viewing Enrollments for: {0}".Fmt(m.person.Name)); return View("Enrollment/Current", m); }
public ActionResult EnrollGrid(int id) { var m = new CurrentEnrollments(id); UpdateModel(m.Pager); DbUtil.LogActivity("Viewing Enrollments for: {0}".Fmt(m.person.Name)); return(View("CurrentEnrollments", m)); }
public ActionResult EnrollGrid(int id, int?page, int?size, string sort, string dir) { var m = new CurrentEnrollments(id); m.Pager.Set("/Person2/EnrollGrid/" + id, page, size, sort ?? "default", dir ?? "asc"); DbUtil.LogActivity("Viewing Enrollments for: {0}".Fmt(m.person.Name)); return(View("Enrollment/Current", m)); }
public ActionResult EnrollGrid(CurrentEnrollments m) { if (!m.Sort.HasValue()) { m.Sort = "default"; } DbUtil.LogPersonActivity($"Viewing Enrollments for: {m.Person.Name}", m.Person.PeopleId, m.Person.Name); return(View("Enrollment/Current", m)); }