public virtual ApiWorkOrderRoutingResponseModel MapBOToModel(
            BOWorkOrderRouting boWorkOrderRouting)
        {
            var model = new ApiWorkOrderRoutingResponseModel();

            model.SetProperties(boWorkOrderRouting.WorkOrderID, boWorkOrderRouting.ActualCost, boWorkOrderRouting.ActualEndDate, boWorkOrderRouting.ActualResourceHr, boWorkOrderRouting.ActualStartDate, boWorkOrderRouting.LocationID, boWorkOrderRouting.ModifiedDate, boWorkOrderRouting.OperationSequence, boWorkOrderRouting.PlannedCost, boWorkOrderRouting.ProductID, boWorkOrderRouting.ScheduledEndDate, boWorkOrderRouting.ScheduledStartDate);

            return(model);
        }
        public virtual BOWorkOrderRouting MapEFToBO(
            WorkOrderRouting ef)
        {
            var bo = new BOWorkOrderRouting();

            bo.SetProperties(
                ef.WorkOrderID,
                ef.ActualCost,
                ef.ActualEndDate,
                ef.ActualResourceHr,
                ef.ActualStartDate,
                ef.LocationID,
                ef.ModifiedDate,
                ef.OperationSequence,
                ef.PlannedCost,
                ef.ProductID,
                ef.ScheduledEndDate,
                ef.ScheduledStartDate);
            return(bo);
        }
        public virtual WorkOrderRouting MapBOToEF(
            BOWorkOrderRouting bo)
        {
            WorkOrderRouting efWorkOrderRouting = new WorkOrderRouting();

            efWorkOrderRouting.SetProperties(
                bo.ActualCost,
                bo.ActualEndDate,
                bo.ActualResourceHr,
                bo.ActualStartDate,
                bo.LocationID,
                bo.ModifiedDate,
                bo.OperationSequence,
                bo.PlannedCost,
                bo.ProductID,
                bo.ScheduledEndDate,
                bo.ScheduledStartDate,
                bo.WorkOrderID);
            return(efWorkOrderRouting);
        }
        public virtual BOWorkOrderRouting MapModelToBO(
            int workOrderID,
            ApiWorkOrderRoutingRequestModel model
            )
        {
            BOWorkOrderRouting boWorkOrderRouting = new BOWorkOrderRouting();

            boWorkOrderRouting.SetProperties(
                workOrderID,
                model.ActualCost,
                model.ActualEndDate,
                model.ActualResourceHr,
                model.ActualStartDate,
                model.LocationID,
                model.ModifiedDate,
                model.OperationSequence,
                model.PlannedCost,
                model.ProductID,
                model.ScheduledEndDate,
                model.ScheduledStartDate);
            return(boWorkOrderRouting);
        }