public IActionResult Rate([FromQuery, Required] int lectionId, [FromQuery, Required] int studentId, [FromQuery, Required, RegularExpression("^([0-5]|Absence)$")] string value) { try { _appService.RateStudent(lectionId, studentId, value); return(Accepted()); } catch (LmsWithClientMsgException ex) { return(Conflict(ex.ClientMessage)); } }