public async Task <CheckDTO> GetByIdAsync(int id)
        {
            var check = await _checks.Find(id);

            var dto = _mapper.Map <CheckDTO>(check);
            var lastResultStatus = await _lastResultStatuses.FirstOrDefaultAsync(x => x.CheckID == check.ID);

            SetLastResultStatus(dto, lastResultStatus);
            return(dto);
        }
        public async Task <CheckDTO> GetByID(int id, bool?simpleStatus)
        {
            var check = await _checks.Find(id);

            var dto = _mapper.Map <CheckDTO>(check);

            await SetLastResultStatus(dto, simpleStatus ?? false);

            return(dto);
        }