public async Task <NewsInfo[]> GetNewsByAuthor(string id) { return(await Task.WhenAll(_newsProvider.GetNewsDBByAuthor(id).Select(async n => await ToNewsInfo(n)))); }
public async Task <NewsInfo[]> GetNewsByAuthor(string id) { return(await Task.WhenAll(_newsProvider.GetNewsDBByAuthor(id).Select(async n => await ToNewsInfo(n)))); }