コード例 #1
0
        public async Task <IActionResult> Get_CompanyEventdetail([FromQuery] int event_id)
        {
            try
            {
                var identity = (ClaimsIdentity)User.Identity;
                var Token    = Token_Handling.Get_Token_FromHeader(Request.Headers, identity);
                var result   = await _GenerateEVENTService.GetCompanyEVENTDetail(event_id, Token);

                return(Ok(Reformatter.Response_ResolutionObject("Event Details retrieved Succesfully", ref result)));
            }
            catch (Exception ex)
            {
                return((new HandleCatches()).ManageExceptions(ex));
            }
        }
コード例 #2
0
        public async Task <IActionResult> Vote_InvestorGetSaved(int event_id)
        {
            try
            {
                var identity = (ClaimsIdentity)User.Identity;
                var Token    = Token_Handling.Get_Token_FromHeader(Request.Headers, identity);
                var result   = await _vote_InvestorService.Vote_Investor_Getdata(Token, event_id);

                return(Ok(Reformatter.Response_ResolutionObject("Investor Vote details retrieved Succesfully", ref result)));
            }
            catch (Exception ex)
            {
                return((new HandleCatches()).ManageExceptions(ex));
            }
        }
コード例 #3
0
        public async Task <IActionResult> Update_EVENTDetail(FJC_CompanyUpdate_Event fJC_CompanyUpdate_Event)
        {
            try
            {
                var identity = (ClaimsIdentity)User.Identity;
                var Token    = Token_Handling.Get_Token_FromHeader(Request.Headers, identity);
                var result   = await _GenerateEVENTService.EVENTDetail(fJC_CompanyUpdate_Event, Token);

                dynamic _obj        = Reformatter.Response_ResolutionObject("Event-Details has been updated successfully", ref result);
                int     _statuscode = _obj.StatusCode;
                return(StatusCode(_statuscode, _obj));
            }
            catch (Exception ex)
            {
                return((new HandleCatches()).ManageExceptions(ex));
            }
        }