Пример #1
0
        // GET api/<controller>/5
        public async Task <IHttpActionResult> Get(long id, CancellationToken cancellationToken = default(CancellationToken))
        {
            var fileInfo = await _fileInfoManager.GetFileInfoAsync(id, cancellationToken);

            if (fileInfo == null)
            {
                return(NotFound());
            }

            return(Ok <FileInfo>(fileInfo));
        }