diff --git a/Bootstrap.Admin/Controllers/Api/InterfaceController.cs b/Bootstrap.Admin/Controllers/Api/InterfaceController.cs
index e986a291..d7f18dad 100644
--- a/Bootstrap.Admin/Controllers/Api/InterfaceController.cs
+++ b/Bootstrap.Admin/Controllers/Api/InterfaceController.cs
@@ -54,18 +54,9 @@ namespace Bootstrap.Admin.Controllers
///
///
[HttpPost]
- public IEnumerable RetrieveAppMenus([FromBody]AppMenuArgs args)
+ public IEnumerable RetrieveAppMenus([FromBody]AppMenuOption args)
{
- return MenuHelper.RetrieveAppMenus(args.Name, args.Url);
- }
- ///
- ///
- ///
- public class AppMenuArgs
- {
- public string Name { get; set; }
-
- public string Url { get; set; }
+ return MenuHelper.RetrieveAppMenus(args.AppId, args.UserName, args.Url);
}
}
}
diff --git a/Bootstrap.Client.DataAccess/MenuHelper.cs b/Bootstrap.Client.DataAccess/MenuHelper.cs
index f12b3ed4..690a82e5 100644
--- a/Bootstrap.Client.DataAccess/MenuHelper.cs
+++ b/Bootstrap.Client.DataAccess/MenuHelper.cs
@@ -1,4 +1,5 @@
using Bootstrap.Security;
+using Longbow.Configuration;
using System.Collections.Generic;
namespace Bootstrap.Client.DataAccess
@@ -11,9 +12,9 @@ namespace Bootstrap.Client.DataAccess
///
///
///
- ///
+ ///
///
///
- public static IEnumerable RetrieveAppMenus(string name, string url) => BAHelper.RetrieveAppMenus(new { Name = name, Url = url });
+ public static IEnumerable RetrieveAppMenus(string userName, string url) => BAHelper.RetrieveAppMenus(ConfigurationManager.AppSettings["AppId"], userName, url);
}
}
diff --git a/Bootstrap.DataAccess/Helper/MenuHelper.cs b/Bootstrap.DataAccess/Helper/MenuHelper.cs
index 5ecf07c8..3db2e986 100644
--- a/Bootstrap.DataAccess/Helper/MenuHelper.cs
+++ b/Bootstrap.DataAccess/Helper/MenuHelper.cs
@@ -46,7 +46,7 @@ namespace Bootstrap.DataAccess
///
///
///
- public static IEnumerable RetrieveAppMenus(string name, string url) => DbAdapterManager.Create