public OrderServices(IInventoryAAARepository <dbentities.PurchaseOrder> purchaseOrderServices, IInventoryAAARepository <dbentities.PurchaseOrderDetail> purchaseOrderDetailServices, IInventoryAAARepository <dbentities.SalesOrder> salesOrderServices, IInventoryAAARepository <dbentities.SalesOrderDetail> salesOrderDetailServices, IInventoryAAARepository <dbentities.CorrectionOrder> correctionOrderServices, IInventoryAAARepository <dbentities.CorrectionOrderDetail> correctionOrderDetailServices, IInventoryAAARepository <dbentities.SalesOrderStatusLog> salesOrderStatusLogServices, IProductServices productServices, IOrderTypeServices orderTypeServices, ICustomerServices customerServices) { this._purchaseOrderServices = purchaseOrderServices; this._purchaseOrderDetailServices = purchaseOrderDetailServices; this._correctionOrderServices = correctionOrderServices; this._correctionOrderDetailServices = correctionOrderDetailServices; this._salesOrderServices = salesOrderServices; this._salesOrderDetailServices = salesOrderDetailServices; this._salesOrderStatusLogServices = salesOrderStatusLogServices; this._productServices = productServices; this._orderTypeServices = orderTypeServices; this._customerServices = customerServices; this.purchaseOrder = new dbentities.PurchaseOrder(); this.purchaseOrderDetail = new dbentities.PurchaseOrderDetail(); this.salesOrder = new dbentities.SalesOrder(); this.salesOrderDetail = new dbentities.SalesOrderDetail(); this.correctionOrder = new dbentities.CorrectionOrder(); this.correctionOrderDetail = new dbentities.CorrectionOrderDetail(); this.salesOrderStatusLog = new dbentities.SalesOrderStatusLog(); }
public static dbentities.SalesOrderStatusLog DtoToEntity(this SalesOrderLogsRequest request) { dbentities.SalesOrderStatusLog entity = null; if (request != null) { entity = new dbentities.SalesOrderStatusLog { SalesOrderStatusLogsID = request.SalesOrderStatusLogsId, SalesOrderStatusID = request.SalesOrderStatusId, SalesOrderID = request.SalesOrderId, CreatedBy = request.CreatedBy, CreatedTime = request.CreatedTime }; } return(entity); }