Exemplo n.º 1
0
 public void Should_get_formatted_date()
 {
     var meeting = new MeetingInput();
     meeting.StartDate = DateTime.Parse( "1/1/2000 8:30 am");
     meeting.EndDate = DateTime.Parse("1/1/2000 5:00 pm");
     meeting.TimeZone = "cst";
     meeting.GetDate().ShouldEqual("01/01/2000 8:30 - 5:00 p.m. cst");
 }
Exemplo n.º 2
0
 public ActionResult Edit(MeetingInput input)
 {
     if (!_securityContext.HasPermissionsForUserGroup(input.UserGroupId))
     {
         return View(ViewPages.NotAuthorized);
     }
     return Command<MeetingInput, Meeting>(input,
                                           r => RedirectToAction<HomeController>(c => c.Index(r.UserGroup)),
                                           r => View(input));
 }