コード例 #1
0
        public HttpResponseMessage GeteChannelMenu(HttpRequestMessage request)
        {
            HttpResponseMessage res = null;

            var menu = new Mpr_FintrakMenuRepository();

            appLog.InfoFormat("About to call GeteChannelMenu() method.");
            List <mpr_FintrakMenu> menuDataObj = menu.EchannelMth().ToList();

            appLog.InfoFormat("GeteChannelMenu() method successfully called.");

            res = request.CreateResponse(HttpStatusCode.OK, menuDataObj);

            return(res);
        }
コード例 #2
0
        public HttpResponseMessage MenuSubMenu(HttpRequestMessage request)
        {
            HttpResponseMessage res = null;

            var menus = new Mpr_FintrakMenuRepository();

            appLog.InfoFormat("About to call Getmpr_FintrakMenuList() method.");
            IEnumerable <mprFintrakMenu_ObjectListInfo> menusDataList = menus.Getmpr_FintrakMenuList();

            appLog.InfoFormat("Getmpr_FintrakMenuList() method successfully called.");

            res = request.CreateResponse <IEnumerable>(HttpStatusCode.OK, menusDataList);

            return(res);
        }
コード例 #3
0
        public HttpResponseMessage GetMenuObj(HttpRequestMessage request, string searchvalue)
        {
            HttpResponseMessage res = null;

            var menu = new Mpr_FintrakMenuRepository();

            appLog.InfoFormat("About to call GetFIntrakMenuOBJ(searchvalue) method.");
            mpr_FintrakMenu menuDataObj = menu.GetFIntrakMenuOBJ(searchvalue);

            appLog.InfoFormat("GetFIntrakMenuOBJ(searchvalue) method successfully called.");

            res = request.CreateResponse(HttpStatusCode.OK, menuDataObj);

            return(res);
        }