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); }
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); }
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); }