示例#1
0
 public async IAsyncEnumerable <DetailViewModel> Get()
 {
     await foreach (var detail in _detailService.GetAllAsync(Bll.Extensions.DetailExtensions.ToDto))
     {
         yield return(detail.ToViewModel());
     }
 }