Exemplo n.º 1
0
        public async Task <MetadataResource> GetMetadata(string uuid)
        {
            try {
                var type = await _metadataService.GetByUuidAsync(Guid.Parse(uuid));

                var res = _mapper.Map <Metadata, MetadataResource>(type);
                return(res);
            } catch (Exception) {
                throw new HttpException(HttpStatusCode.NotFound);
            }
        }