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