public virtual ApiTableResponseModel MapBOToModel( BOTable boTable) { var model = new ApiTableResponseModel(); model.SetProperties(boTable.Id, boTable.Name); return(model); }
public virtual BOTable MapEFToBO( Table ef) { var bo = new BOTable(); bo.SetProperties( ef.Id, ef.Name); return(bo); }
public virtual Table MapBOToEF( BOTable bo) { Table efTable = new Table(); efTable.SetProperties( bo.Id, bo.Name); return(efTable); }
public virtual BOTable MapModelToBO( int id, ApiTableRequestModel model ) { BOTable boTable = new BOTable(); boTable.SetProperties( id, model.Name); return(boTable); }