Exemplo n.º 1
0
        public virtual BOEvent MapEFToBO(
            Event ef)
        {
            var bo = new BOEvent();

            bo.SetProperties(
                ef.Id,
                ef.ActualEndDate,
                ef.ActualStartDate,
                ef.BillAmount,
                ef.EventStatusId,
                ef.ScheduledEndDate,
                ef.ScheduledStartDate,
                ef.StudentNote,
                ef.TeacherNote);
            return(bo);
        }
Exemplo n.º 2
0
        public virtual BOEvent MapModelToBO(
            int id,
            ApiEventRequestModel model
            )
        {
            BOEvent boEvent = new BOEvent();

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