public virtual BOMachinePolicy MapEFToBO( MachinePolicy ef) { var bo = new BOMachinePolicy(); bo.SetProperties( ef.Id, ef.IsDefault, ef.JSON, ef.Name); return(bo); }
public virtual BOMachinePolicy MapModelToBO( string id, ApiMachinePolicyRequestModel model ) { BOMachinePolicy boMachinePolicy = new BOMachinePolicy(); boMachinePolicy.SetProperties( id, model.IsDefault, model.JSON, model.Name); return(boMachinePolicy); }