Exemplo n.º 1
0
 public ActionResult Calendar(int id, string sg1, string sg2, bool? SortByWeek)
 {
     var m = new VolunteerCommitmentsModel(id);
     m.SmallGroup1 = sg1;
     m.SmallGroup2 = sg2;
     m.SortByWeek = SortByWeek ?? false;
     return View(m);
 }
Exemplo n.º 2
0
 public ActionResult ManageArea(PostTargetInfo i)
 {
     var m = new VolunteerCommitmentsModel(i.id);
     m.SmallGroup1 = i.sg1;
     m.SmallGroup2 = i.sg2;
     m.SortByWeek = i.SortByWeek;
     foreach (var s in i.list)
         m.ApplyDragDrop(i.target, i.week, i.time, s);
     return View(m);
 }