Ejemplo n.º 1
0
 public static decimal GetNoSpisDishesOfCatSum(this AlohaService.ServiceDataContracts.OrderFlight orderFlightOrder, long?cId)
 {
     if (orderFlightOrder.DishPackagesForLab == null || !orderFlightOrder.DishPackagesForLab.Any())
     {
         return(0);
     }
     return(orderFlightOrder.DishPackagesNoSpis.Where(x => x.Dish.DishLogicGroupId == cId).Sum(a => a.TotalSumm) * (orderFlightOrder.OrderSumm == 0 ? 1 : (orderFlightOrder.OrderTotalSumm / orderFlightOrder.OrderSumm)));
 }
Ejemplo n.º 2
0
 public OperationResult CreateOrderFlight(ServiceDataContracts.OrderFlight orderFlight)
 {
     return(orderFlightService.CreateOrderFlight(orderFlight));
 }
Ejemplo n.º 3
0
 public OperationResultValue <ServiceDataContracts.OrderFlight> UpdateOrderFlight(ServiceDataContracts.OrderFlight orderFlight, long userId)
 {
     return(orderFlightService.UpdateOrderFlight(orderFlight, userId));
 }
Ejemplo n.º 4
0
 public bool InsertOrderFlightFromAloha(ServiceDataContracts.OrderFlight orderFlight)
 {
     return(orderFlightService.InsertOrderFlightFromAloha(orderFlight));
 }