예제 #1
0
        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));
            }
        }