Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. List<SqlOnlyCostModel> costat = new List<SqlOnlyCostModel>();
  2. foreach (var QuantityItem in all)
  3.  
  4. {
  5. int maxQtd = all.Max(x => x.QuantityItem);
  6. decimal maxPrice = all.Max(x => x.UnitPrice);
  7. string nCurrency = all.Max(x => x.Currency);
  8. string nCost = all.Max(x => x.Currency);
  9. }
  10.  
  11. _dbEngContext.SaveChanges();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement