Esempio n. 1
0
        public BasicResponse <List <WebmenuInfo> > GetWebmenuListByUserCode(WebmunuGetListByUserCodeRequest webmenurequest)
        {
            var webmenuresponse = new BasicResponse <List <WebmenuInfo> >();
            var result          = _Repository.QueryTable("global_GetWebmenuListByUserCode", new object[] { webmenurequest.UserCode });

            var webmenuInfoList = _Repository.ToEntityFromTable <WebmenuInfo>(result).ToList();

            webmenuresponse.Data = webmenuInfoList;

            return(webmenuresponse);
        }
Esempio n. 2
0
        public BasicResponse <List <WebmenuInfo> > GetWebmenuListByUserCode(WebmunuGetListByUserCodeRequest webmenurequest)
        {
            var responseStr = HttpClientHelper.Post(Webapi + "/v1/Webmenu/GetWebmenuListByUserCode?token=" + Token, JSONHelper.ToJSONString(webmenurequest));

            return(JSONHelper.ParseJSONString <BasicResponse <List <WebmenuInfo> > >(responseStr));
        }
Esempio n. 3
0
 public Basic.Framework.Web.BasicResponse <List <Sys.Safety.DataContract.WebmenuInfo> > GetWebmenuListByUserCode(WebmunuGetListByUserCodeRequest webmenurequest)
 {
     return(webmunuService.GetWebmenuListByUserCode(webmenurequest));
 }