public virtual ApiChainResponseModel MapBOToModel( BOChain boChain) { var model = new ApiChainResponseModel(); model.SetProperties(boChain.Id, boChain.ChainStatusId, boChain.ExternalId, boChain.Name, boChain.TeamId); return(model); }
public virtual BOChain MapEFToBO( Chain ef) { var bo = new BOChain(); bo.SetProperties( ef.Id, ef.ChainStatusId, ef.ExternalId, ef.Name, ef.TeamId); return(bo); }
public virtual Chain MapBOToEF( BOChain bo) { Chain efChain = new Chain(); efChain.SetProperties( bo.ChainStatusId, bo.ExternalId, bo.Id, bo.Name, bo.TeamId); return(efChain); }
public virtual BOChain MapModelToBO( int id, ApiChainRequestModel model ) { BOChain boChain = new BOChain(); boChain.SetProperties( id, model.ChainStatusId, model.ExternalId, model.Name, model.TeamId); return(boChain); }