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