public static object WebServerJsonModel() { var obj = new { id = WebServerId.Create().Uuid }; return(Core.Environment.Hal.Apply(Defines.Resource.Guid, obj)); }
public static object WebServerJsonModel() { var obj = new { id = WebServerId.CreateFromPath(ManagementUnit.Current.ApplicationHostConfigPath).Uuid }; return(Core.Environment.Hal.Apply(Defines.Resource.Guid, obj)); }
public object Get(string id) { if (id != WebServerId.CreateFromPath(ManagementUnit.Current.ApplicationHostConfigPath).Uuid) { return(NotFound()); } return(WebServerHelper.WebServerJsonModel()); }
public object Get(string id) { if (id != WebServerId.Create().Uuid) { return(NotFound()); } return(WebServerHelper.WebServerJsonModel()); }