Ejemplo n.º 1
0
///////////////////////////////////////UpdateEVENT////////////////////////////////////////////////////////////////
        public async Task <DataSet> EVENTDetail(FJC_UpdateEVENT fJC_EVENT, string Token)
        {
            DataSet ds = new DataSet();

            ds = await AppDBCalls.GetDataSet("EVOTE_EVENT_DETAIL", CommonSpParam(fJC_EVENT, Token), PassResolutionArray(fJC_EVENT.resolutions_Datas));

            return(Reformatter.Validate_Dataset(ds));
        }
Ejemplo n.º 2
0
        private Dictionary <string, object> CommonSpParam(FJC_UpdateEVENT fJC_EVENT, string Token)
        {
            Dictionary <string, object> dictLogin = new Dictionary <string, object>();

            dictLogin.Add("@EVENT_ID", fJC_EVENT.event_id);
            dictLogin.Add("@VOTING_START_DATETIME", (ManageDatetime.DateTimeHandler(fJC_EVENT.voting_start_datetime)));
            dictLogin.Add("@VOTING_END_DATETIME", (ManageDatetime.DateTimeHandler(fJC_EVENT.voting_end_datetime)));
            dictLogin.Add("@MEETING_DATETIME", (ManageDatetime.DateTimeHandler(fJC_EVENT.meeting_datetime)));
            dictLogin.Add("@LAST_DATE_NOTICE", (ManageDatetime.DateTimeHandler(fJC_EVENT.last_date_notice)));
            dictLogin.Add("@VOTING_RESULT_DATE", (ManageDatetime.DateTimeHandler(fJC_EVENT.voting_result_date)));
            dictLogin.Add("@UPLOAD_LOGO", fJC_EVENT.upload_logo);
            dictLogin.Add("@UPLOAD_RESOLUTION_FILE", fJC_EVENT.upload_resolution_file);
            dictLogin.Add("@UPLOAD_NOTICE", fJC_EVENT.upload_notice);
            dictLogin.Add("@ENTER_NOF_RESOLUTION", fJC_EVENT.enter_nof_resolution);
            dictLogin.Add("@token", Token);
            return(dictLogin);
        }
Ejemplo n.º 3
0
        public async Task <IActionResult> UpdateEVENTDetailUser(FJC_UpdateEVENT fJC_EVSN)

        {
            try
            {
                var identity = (ClaimsIdentity)User.Identity;
                var Token    = Token_Handling.Get_Token_FromHeader(Request.Headers, identity);
                var result   = await _GenerateEVENTService.EVENTDetail(fJC_EVSN, Token);

                //return Ok(Reformatter.Response_ResolutionObject("Event ID "+ result.Tables[0].Rows[0][0] +"Details has been updated succesfully", ref result));
                dynamic _obj        = Reformatter.Response_ResolutionObject("Event ID " + result.Tables[0].Rows[0][0] + "Details has been updated succesfully", ref result);
                int     _statuscode = _obj.StatusCode;
                return(StatusCode(_statuscode, _obj));
            }
            catch (Exception ex)
            {
                return((new HandleCatches()).ManageExceptions(ex));
            }
        }
Ejemplo n.º 4
0
        public async Task <dynamic> Put_UpdateEven(FJC_UpdateEVENT fJC_UpdateEVENT)   //get error in result converting
        {
            var get_url1 = await CommanUrl.updateEvent().WithHeader("Token", token).PutJsonAsync(fJC_UpdateEVENT).ReceiveString();

            return(JsonConvert.DeserializeObject <ExpandoObject>(get_url1, new ExpandoObjectConverter()));
        }