public virtual BOShift MapEFToBO( Shift ef) { var bo = new BOShift(); bo.SetProperties( ef.ShiftID, ef.EndTime, ef.ModifiedDate, ef.Name, ef.StartTime); return(bo); }
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); }