Esempio n. 1
0
        public async Task <IActionResult> VideoConf(FJC_VideoConf FJC_VideoConf)
        {
            try
            {
                var identity = (ClaimsIdentity)User.Identity;
                var Token    = Token_Handling.Get_Token_FromHeader(Request.Headers, identity);
                var result   = await _videoConfService.VideoConf_Update(FJC_VideoConf, Token);

                return(Ok(Reformatter.Response_Object("VC Details updated in event successfully", ref result)));
            }
            catch (Exception ex)
            {
                return((new HandleCatches()).ManageExceptions(ex));
            }
        }
        /////////////////////////Get Serach using POST method/////////////////////
        public async Task <DataTable> VideoConf_Update(FJC_VideoConf FJC_VideoConf, string Token)
        {
            Dictionary <string, object> dictRegis = new Dictionary <string, object>();

            dictRegis.Add("@event_id", FJC_VideoConf.event_id);
            dictRegis.Add("@vc_url", FJC_VideoConf.vc_url);
            dictRegis.Add("@investor_url", FJC_VideoConf.investor_url);
            dictRegis.Add("@vc_title", FJC_VideoConf.vc_title);
            dictRegis.Add("@vc_datetime", FJC_VideoConf.vc_datetime);
            dictRegis.Add("@vc_file", FJC_VideoConf.vc_file);
            dictRegis.Add("@vc_handler", FJC_VideoConf.vc_handler);
            dictRegis.Add("@flag", 1);
            dictRegis.Add("@token", Token);

            DataSet ds = new DataSet();

            ds = await AppDBCalls.GetDataSet("Evote_VideoConf", dictRegis);

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