public virtual ApiLibraryVariableSetResponseModel MapBOToModel( BOLibraryVariableSet boLibraryVariableSet) { var model = new ApiLibraryVariableSetResponseModel(); model.SetProperties(boLibraryVariableSet.Id, boLibraryVariableSet.ContentType, boLibraryVariableSet.JSON, boLibraryVariableSet.Name, boLibraryVariableSet.VariableSetId); return(model); }
public virtual BOLibraryVariableSet MapEFToBO( LibraryVariableSet ef) { var bo = new BOLibraryVariableSet(); bo.SetProperties( ef.Id, ef.ContentType, ef.JSON, ef.Name, ef.VariableSetId); return(bo); }
public virtual LibraryVariableSet MapBOToEF( BOLibraryVariableSet bo) { LibraryVariableSet efLibraryVariableSet = new LibraryVariableSet(); efLibraryVariableSet.SetProperties( bo.ContentType, bo.Id, bo.JSON, bo.Name, bo.VariableSetId); return(efLibraryVariableSet); }
public virtual BOLibraryVariableSet MapModelToBO( string id, ApiLibraryVariableSetRequestModel model ) { BOLibraryVariableSet boLibraryVariableSet = new BOLibraryVariableSet(); boLibraryVariableSet.SetProperties( id, model.ContentType, model.JSON, model.Name, model.VariableSetId); return(boLibraryVariableSet); }