Esempio n. 1
0
        public static DAL.App.DTO.HourlyRate MapFromBLL(BLL.App.DTO.HourlyRate hourlyRate)
        {
            var res = hourlyRate == null ? null : new DAL.App.DTO.HourlyRate
            {
                Id       = hourlyRate.Id,
                HourRate = hourlyRate.HourRate,
                Start    = hourlyRate.Start,
                End      = hourlyRate.End,
            };

            return(res);
        }
Esempio n. 2
0
        public static externalDTO.HourlyRate MapFromBLL(internalDTO.HourlyRate hourlyRate)
        {
            var res = hourlyRate == null ? null : new externalDTO.HourlyRate
            {
                Id       = hourlyRate.Id,
                HourRate = hourlyRate.HourRate,
                Start    = hourlyRate.Start,
                End      = hourlyRate.End,
            };

            return(res);
        }