public ActionResult <IEnumerable <SingleRecordDto> > GetRecords([FromQuery] string employeeId) { try { var allRecords = _recordsRepository.GetAllRecords(employeeId); return(Ok(_mapper.Map <IEnumerable <SingleRecordDto> >(allRecords))); } catch { return(StatusCode(StatusCodes.Status500InternalServerError)); } }