public virtual ApiChannelResponseModel MapBOToModel( BOChannel boChannel) { var model = new ApiChannelResponseModel(); model.SetProperties(boChannel.Id, boChannel.DataVersion, boChannel.JSON, boChannel.LifecycleId, boChannel.Name, boChannel.ProjectId, boChannel.TenantTags); return(model); }
public virtual BOChannel MapEFToBO( Channel ef) { var bo = new BOChannel(); bo.SetProperties( ef.Id, ef.DataVersion, ef.JSON, ef.LifecycleId, ef.Name, ef.ProjectId, ef.TenantTags); return(bo); }
public virtual Channel MapBOToEF( BOChannel bo) { Channel efChannel = new Channel(); efChannel.SetProperties( bo.DataVersion, bo.Id, bo.JSON, bo.LifecycleId, bo.Name, bo.ProjectId, bo.TenantTags); return(efChannel); }
public virtual BOChannel MapModelToBO( string id, ApiChannelRequestModel model ) { BOChannel boChannel = new BOChannel(); boChannel.SetProperties( id, model.DataVersion, model.JSON, model.LifecycleId, model.Name, model.ProjectId, model.TenantTags); return(boChannel); }