public async Task <IActionResult> Post([FromBody] TestDTO model) { model.CreatedBy = User.FindFirstValue(ClaimTypes.NameIdentifier); if (await testsService.Insert(model)) { return(Ok()); } else { return(BadRequest()); } }