public virtual ApiEmployeePayHistoryResponseModel MapBOToModel( BOEmployeePayHistory boEmployeePayHistory) { var model = new ApiEmployeePayHistoryResponseModel(); model.SetProperties(boEmployeePayHistory.BusinessEntityID, boEmployeePayHistory.ModifiedDate, boEmployeePayHistory.PayFrequency, boEmployeePayHistory.Rate, boEmployeePayHistory.RateChangeDate); return(model); }
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 EmployeePayHistory MapBOToEF( BOEmployeePayHistory bo) { EmployeePayHistory efEmployeePayHistory = new EmployeePayHistory(); efEmployeePayHistory.SetProperties( bo.BusinessEntityID, bo.ModifiedDate, bo.PayFrequency, bo.Rate, bo.RateChangeDate); return(efEmployeePayHistory); }
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); }