Exemplo n.º 1
0
 public RedirectToRouteResult MakePending(MakeCoursePendingCommand command)
 {
     if (!ModelState.IsValid)
         return this.RedirectToAction(c => c.MakePending(command.CourseId));
     _commandService.Execute(command);
     return this.RedirectToAction(c => c.Details(command.CourseId));
 }
Exemplo n.º 2
0
 public void WhenIMakeTheCoursePending()
 {
     var cmd = new MakeCoursePendingCommand()
     {
         CourseId = DomainHelper.GetEventSourceId<Course>()
     };
     DomainHelper.WhenExecuting(cmd);
 }