private void FillFromOrder(IUnitOfWork uow, CallTask callTask, IPersonProvider personProvider, Order order) { callTask.Counterparty = uow.GetById <Counterparty>(order.Client.Id); callTask.DeliveryPoint = uow.GetById <DeliveryPoint>(order.DeliveryPoint.Id); callTask.TaskState = CallTaskStatus.Reconciliation; callTask.AssignedEmployee = uow.GetById <Employee>(personProvider.GetDefaultEmployeeForCallTask()); callTask.SourceDocumentId = order.Id; }