Example #1
0
 public async Task <ActionResult <Unit> > EditCourse(Guid id, Edit.Execute data)
 {
     data.CourseId = id;
     return(await Mediator.Send(data));
 }
 public async Task <ActionResult <Unit> > Update(Guid id, Edit.Execute teacher)
 {
     teacher.TeacherId = id;
     return(await Mediator.Send(teacher));
 }
Example #3
0
 public async Task <ActionResult <Unit> > UpdateInstructor(Guid id, Edit.Execute data)
 {
     data.InstructorId = id;
     return(await Mediator.Send(data));
 }