private async Task <IActionResult> GetAllTestResults(DatatableParametersViewModel dataTableParameters) { try { var result = await _testResultService.GetAll(_mapper.Map <DatatableParametersDto>(dataTableParameters)); return(Ok(result)); } catch (Exception e) { return(StatusCode(500, new JsonResult(new { message = $"Something went wrong inside the getall testresults action: {e.Message}" }))); } }