wip being able to soft delete a student

This commit is contained in:
Giovani
2019-05-02 11:28:13 -05:00
parent 5bc0fb9659
commit a288f499f5
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);
}
}
}