| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Text; |
| | | 4 | | using WinSolutions.Sveta.Server.Data.DataModel.Entities; |
| | | 5 | | using WinSolutions.Sveta.Server.Data.DataModel.Kinds; |
| | | 6 | | |
| | | 7 | | namespace WinSolutions.Sveta.Server.Domain |
| | | 8 | | { |
| | | 9 | | public static class MovementItemsExtension |
| | | 10 | | { |
| | | 11 | | public static List<MovementItem> CloneItems(this List<MovementItem> list) |
| | 74 | 12 | | { |
| | 74 | 13 | | List<MovementItem> result = new List<MovementItem>(); |
| | 74 | 14 | | list.ForEach(item => |
| | 148 | 15 | | { |
| | 148 | 16 | | MovementItem element = new MovementItem |
| | 148 | 17 | | { |
| | 148 | 18 | | Good = item.Good, |
| | 148 | 19 | | Quantity = item.Quantity, |
| | 148 | 20 | | Price = item.Price, |
| | 148 | 21 | | RecState = item.RecState |
| | 148 | 22 | | }; |
| | 148 | 23 | | result.Add(element); |
| | 148 | 24 | | }); |
| | 74 | 25 | | return result; |
| | 74 | 26 | | } |
| | | 27 | | } |
| | | 28 | | } |