public virtual ApiApiKeyResponseModel MapBOToModel( BOApiKey boApiKey) { var model = new ApiApiKeyResponseModel(); model.SetProperties(boApiKey.Id, boApiKey.ApiKeyHashed, boApiKey.Created, boApiKey.JSON, boApiKey.UserId); return(model); }
public virtual BOApiKey MapEFToBO( ApiKey ef) { var bo = new BOApiKey(); bo.SetProperties( ef.Id, ef.ApiKeyHashed, ef.Created, ef.JSON, ef.UserId); return(bo); }
public virtual ApiKey MapBOToEF( BOApiKey bo) { ApiKey efApiKey = new ApiKey(); efApiKey.SetProperties( bo.ApiKeyHashed, bo.Created, bo.Id, bo.JSON, bo.UserId); return(efApiKey); }
public virtual BOApiKey MapModelToBO( string id, ApiApiKeyRequestModel model ) { BOApiKey boApiKey = new BOApiKey(); boApiKey.SetProperties( id, model.ApiKeyHashed, model.Created, model.JSON, model.UserId); return(boApiKey); }