예제 #1
0
        public virtual BOVEvent MapEFToBO(
            VEvent ef)
        {
            var bo = new BOVEvent();

            bo.SetProperties(
                ef.Id,
                ef.ActualEndDate,
                ef.ActualStartDate,
                ef.BillAmount,
                ef.EventStatusId,
                ef.ScheduledEndDate,
                ef.ScheduledStartDate);
            return(bo);
        }
예제 #2
0
        public virtual BOVEvent MapModelToBO(
            int id,
            ApiVEventRequestModel model
            )
        {
            BOVEvent boVEvent = new BOVEvent();

            boVEvent.SetProperties(
                id,
                model.ActualEndDate,
                model.ActualStartDate,
                model.BillAmount,
                model.EventStatusId,
                model.ScheduledEndDate,
                model.ScheduledStartDate);
            return(boVEvent);
        }