public IActionResult Get(string id) { if (!Guid.TryParse(id, out var gid)) { return(NotFound()); } var header = _logic.GetFileHeaderById(gid); if (header == null) { return(NotFound()); } var file = _logic.GetFileById(gid); if (file == null) { return(NotFound()); } return(File(file.Content, file.ContentType, $"{header.Id}{header.FileExt}")); }