コード例 #1
0
        public async Task <HfeaFormDto> Get(string id)
        {
            var hfeaForm = await _hfeaRepository.GetItemAsync(id);

            if (hfeaForm == null)
            {
                throw new ResponsibleSystemUserFriendlyException($"Hfea with id = {id} not found", "Could not found the HFEA form, maybe it's deleted.");
            }

            var result = hfeaForm.MapTo <HfeaFormDto>();

            return(result);
        }