public async Task <List <MetafileDto> > GetBranch(string branchName) { var result = await _assetsStorage.GetBranch(branchName); if (result != null) { return(result); } else { var resp = new HttpResponseMessage(System.Net.HttpStatusCode.NotFound) { Content = new StringContent($"Branch content not found= {branchName}"), ReasonPhrase = "Branch content not found" }; throw new HttpResponseException(resp); } }