public ActionResult <IEnumerable <EmployeeDto> > GetEmployees() { try { var allRecords = _recordsRepository.GetAllEmployees(); return(Ok(_mapper.Map <IEnumerable <EmployeeDto> >(allRecords))); } catch { return(StatusCode(StatusCodes.Status500InternalServerError)); } }