Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task <IActionResult> Create([FromBody] CreateEcerciseRequest request) { var created = await _excersiseService.CreateExcersiseAsync(request.Title, request.Content, request.CorrectAnswer, request.SubjectId); if (!created) { return(BadRequest(new { error = "Unable to create excersise" })); } return(Ok()); }