wip being able to soft delete a student

This commit is contained in:
2019-05-02 11:28:13 -05:00
parent ef9a4aef9f
commit 1ee8747c8e
6 changed files with 77 additions and 1 deletions

View File

@@ -46,5 +46,12 @@ namespace BrightGlimmer.Api.Controllers
var student = await mediator.Send(command);
return new JsonResult(student);
}
[HttpDelete("{id}")]
public async Task<ActionResult> Delete(Guid id)
{
var success = await mediator.Send(new DeleteStudentCommand(id));
return new JsonResult(success);
}
}
}