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)); }
public async Task <ActionResult <Unit> > UpdateInstructor(Guid id, Edit.Execute data) { data.InstructorId = id; return(await Mediator.Send(data)); }