Beispiel #1
0
 public ActionResult <BaseResponse <EmptyViewModel> > UpdateAssignment([FromRoute] int id, [FromBody] NewAssignmentViewModel model)
 {
     return(GetResult(GetCommand <UpdateAssignmentCommand>().Execute(new EditAssignmentRequestViewModel()
     {
         ViewModel = model,
         AssignmentId = id
     })));
 }
Beispiel #2
0
 public ActionResult <BaseResponse <EmptyViewModel> > CreateAssignment([FromBody] NewAssignmentViewModel model)
 {
     return(GetResult(GetCommand <CreateAssignmentCommand>().Execute(model)));
 }