/* * public static TurnDetailsDTO GetTurnDetailsDTO(customersInLine appointment) * { * * TurnDetailsDTO turnDetails = new TurnDetailsDTO() * { * ServiceId=appointment.activityTime.serviceId, * PreAlert=appointment.preAlert, * TurnId=appointment.TurnId * }; * return turnDetails; * } * * public static List<TurnDetailsDTO> GetTurnsDetailsDTO(List<customersInLine> appointments) * { * List<TurnDetailsDTO> line = new List<TurnDetailsDTO>(); * appointments.ForEach(a => line.Add(GetTurnDetailsDTO(a))); * return line; * } */ #endregion #region convert customersInLine to CustomerInLineDTO public static CustomerInLineDTO GetCustomerInLineDTO(customersInLine appointment) { CustomerInLineDTO turnDetails = new CustomerInLineDTO() { ActivityTimeId = appointment.activityTimeId, StatusTurn = appointment.statusTurn, CustId = appointment.custId, PreAlert = appointment.preAlert, TurnId = appointment.TurnId, EstimatedHour = appointment.estimatedHour }; turnDetails.EstimatedHour.Add(appointment.estimatedHour.TimeOfDay); return(turnDetails); }
public static customersInLine GetCustomerInLine(CustomerInLineDTO appointment) { customersInLine customerInLine = new customersInLine() { actualHour = appointment.ActualHour, activityTimeId = appointment.ActivityTimeId, statusTurn = appointment.StatusTurn, custId = appointment.CustId, preAlert = appointment.PreAlert, TurnId = appointment.TurnId, estimatedHour = appointment.EstimatedHour, enterHour = appointment.EnterHour }; return(customerInLine); }