public virtual ApiEmployeeDepartmentHistoryResponseModel MapBOToModel(
            BOEmployeeDepartmentHistory boEmployeeDepartmentHistory)
        {
            var model = new ApiEmployeeDepartmentHistoryResponseModel();

            model.SetProperties(boEmployeeDepartmentHistory.BusinessEntityID, boEmployeeDepartmentHistory.DepartmentID, boEmployeeDepartmentHistory.EndDate, boEmployeeDepartmentHistory.ModifiedDate, boEmployeeDepartmentHistory.ShiftID, boEmployeeDepartmentHistory.StartDate);

            return(model);
        }
Beispiel #2
0
        public virtual BOEmployeeDepartmentHistory MapEFToBO(
            EmployeeDepartmentHistory ef)
        {
            var bo = new BOEmployeeDepartmentHistory();

            bo.SetProperties(
                ef.BusinessEntityID,
                ef.DepartmentID,
                ef.EndDate,
                ef.ModifiedDate,
                ef.ShiftID,
                ef.StartDate);
            return(bo);
        }
Beispiel #3
0
        public virtual EmployeeDepartmentHistory MapBOToEF(
            BOEmployeeDepartmentHistory bo)
        {
            EmployeeDepartmentHistory efEmployeeDepartmentHistory = new EmployeeDepartmentHistory();

            efEmployeeDepartmentHistory.SetProperties(
                bo.BusinessEntityID,
                bo.DepartmentID,
                bo.EndDate,
                bo.ModifiedDate,
                bo.ShiftID,
                bo.StartDate);
            return(efEmployeeDepartmentHistory);
        }
        public virtual BOEmployeeDepartmentHistory MapModelToBO(
            int businessEntityID,
            ApiEmployeeDepartmentHistoryRequestModel model
            )
        {
            BOEmployeeDepartmentHistory boEmployeeDepartmentHistory = new BOEmployeeDepartmentHistory();

            boEmployeeDepartmentHistory.SetProperties(
                businessEntityID,
                model.DepartmentID,
                model.EndDate,
                model.ModifiedDate,
                model.ShiftID,
                model.StartDate);
            return(boEmployeeDepartmentHistory);
        }