public virtual ApiLocationResponseModel MapBOToModel( BOLocation boLocation) { var model = new ApiLocationResponseModel(); model.SetProperties(boLocation.LocationID, boLocation.Availability, boLocation.CostRate, boLocation.ModifiedDate, boLocation.Name); return(model); }
public virtual BOLocation MapEFToBO( Location ef) { var bo = new BOLocation(); bo.SetProperties( ef.LocationID, ef.Availability, ef.CostRate, ef.ModifiedDate, ef.Name); return(bo); }
public virtual Location MapBOToEF( BOLocation bo) { Location efLocation = new Location(); efLocation.SetProperties( bo.Availability, bo.CostRate, bo.LocationID, bo.ModifiedDate, bo.Name); return(efLocation); }
public virtual BOLocation MapModelToBO( short locationID, ApiLocationRequestModel model ) { BOLocation boLocation = new BOLocation(); boLocation.SetProperties( locationID, model.Availability, model.CostRate, model.ModifiedDate, model.Name); return(boLocation); }