| | | 1 | | namespace WinSolutions.Sveta.Server.Data.DataModel.Extensions |
| | | 2 | | { |
| | | 3 | | using Clave.Expressionify; |
| | | 4 | | using System; |
| | | 5 | | using System.Collections.Generic; |
| | | 6 | | using System.Linq; |
| | | 7 | | using System.Text; |
| | | 8 | | using WinSolutions.Sveta.Server.Data.DataModel.Entities; |
| | | 9 | | |
| | | 10 | | public static class RestExtensions_Expressionify |
| | | 11 | | { |
| | | 12 | | public static System.Linq.Expressions.Expression<System.Func<IEnumerable<Rest>, long, decimal>> ActualQuantity |
| | | 13 | | { |
| | 0 | 14 | | get; |
| | | 15 | | } |
| | | 16 | | |
| | 0 | 17 | | = (IEnumerable<Rest> rests, long departmentId) => rests.Actual(departmentId) != null ? rests.Actual(departmentId |
| | | 18 | | public static System.Linq.Expressions.Expression<System.Func<IEnumerable<Rest>, long, Rest>> Actual |
| | | 19 | | { |
| | 0 | 20 | | get; |
| | | 21 | | } |
| | | 22 | | |
| | 0 | 23 | | = (IEnumerable<Rest> rests, long departmentId) => rests.FirstOrDefault(x => !x.IsDeleted && x.DepartmentId == de |
| | | 24 | | } |
| | | 25 | | } |