public async Task <IActionResult> PaneListDelete(FJC_PaneList fJC_PaneList)
        {
            try
            {
                var identity = (ClaimsIdentity)User.Identity;
                var Token    = Token_Handling.Get_Token_FromHeader(Request.Headers, identity);

                var result = await _PaneListService.PaneListDeleteData(fJC_PaneList, Token);

                return(Ok(Reformatter.Response_Object("Panelist Removed Successfully", ref result)));
            }
            catch (Exception ex)
            {
                return((new HandleCatches()).ManageExceptions(ex));
            }
        }
예제 #2
0
        ////////////////////////POST Method for Pane List//////////////////////////
        public async Task <DataTable> PaneListData(FJC_PaneList fJC_PaneList, string token)
        {
            Dictionary <string, object> dictLogin = new Dictionary <string, object>();

            dictLogin.Add("@event_id", fJC_PaneList.event_id);
            dictLogin.Add("@email_id", fJC_PaneList.email_id);
            dictLogin.Add("@name", fJC_PaneList.name);
            dictLogin.Add("@flag", 1);
            dictLogin.Add("@token", token);

            DataSet ds = new DataSet();

            ds = await AppDBCalls.GetDataSet("Evote_PaneList", dictLogin);

            return(Reformatter.Validate_DataTable(ds.Tables[0]));
        }