public ServerGuideServices(ICoreTemplateRepository <dbentities.ServerGuide> serverGuides, ICoreTemplateRepository <dbentities.ServerType> serverTypes) { this._serverGuides = serverGuides; this._serverTypes = serverTypes; this.serverGuides = new dbentities.ServerGuide(); this.serverTypes = new dbentities.ServerType(); }
public static dbentities.ServerGuide DtoToEntity(this ServerGuideDetailRequest request) { dbentities.ServerGuide entity = null; if (request != null) { entity = new dbentities.ServerGuide { ServerId = request.ServerId, ServerName = request.ServerName, ServerTypeId = request.ServerTypeId, RemoteLink = request.RemoteLink, RemoteLinkDB = request.RemoteLinkDB, RemoteUserCredentials = request.RemoteUserCredentials, DHCRemoteLink = request.DHCRemoteLink, URLLink = request.URLLink, CreatedBy = request.CreatedBy, CreatedTime = request.CreatedTime, }; } return(entity); }