예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
        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));
        }
예제 #4
0
        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));
        }
예제 #5
0
 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));
 }