Exemple #1
0
        public virtual BOShift MapEFToBO(
            Shift ef)
        {
            var bo = new BOShift();

            bo.SetProperties(
                ef.ShiftID,
                ef.EndTime,
                ef.ModifiedDate,
                ef.Name,
                ef.StartTime);
            return(bo);
        }
Exemple #2
0
        public virtual BOShift MapModelToBO(
            int shiftID,
            ApiShiftRequestModel model
            )
        {
            BOShift boShift = new BOShift();

            boShift.SetProperties(
                shiftID,
                model.EndTime,
                model.ModifiedDate,
                model.Name,
                model.StartTime);
            return(boShift);
        }