public virtual BOEmployeePayHistory MapEFToBO( EmployeePayHistory ef) { var bo = new BOEmployeePayHistory(); bo.SetProperties( ef.BusinessEntityID, ef.ModifiedDate, ef.PayFrequency, ef.Rate, ef.RateChangeDate); return(bo); }
public virtual BOEmployeePayHistory MapModelToBO( int businessEntityID, ApiEmployeePayHistoryRequestModel model ) { BOEmployeePayHistory boEmployeePayHistory = new BOEmployeePayHistory(); boEmployeePayHistory.SetProperties( businessEntityID, model.ModifiedDate, model.PayFrequency, model.Rate, model.RateChangeDate); return(boEmployeePayHistory); }