Example #1
0
 private static List <DTO.BatchDTO> buildVM(Microsoft.EntityFrameworkCore.DbSet <Batch> batches)
 {
     return(batches.Select(b => new DTO.BatchDTO
     {
         Id = b.Id,
         Sku = b.Sku,
         Name = b.Name,
         FormSize = b.FormSize,
         Quantity = b.Quantity,
         Location = b.Location,
         WholesalePrice = b.WholesalePrice
     }).ToList());
 }