public async Task <IActionResult> VerifyAccount(FJC_VerifyAccount verifyAccount) { try { var identity = (ClaimsIdentity)User.Identity; var Token = Token_Handling.Get_Token_FromHeader(Request.Headers, identity); var result = await _accountSearchService.Verify_AccountData(verifyAccount, Token); return(Ok(Reformatter.Response_Object("Account Verified Successfully", ref result))); } catch (Exception ex) { return((new HandleCatches()).ManageExceptions(ex)); } }
//////////////////Verify Account using POST method/////////////////////////// public async Task <DataTable> Verify_AccountData(FJC_VerifyAccount verifyAccount, string Token) { Dictionary <string, object> dictRegis = new Dictionary <string, object>(); dictRegis.Add("@doc_id", verifyAccount.doc_id); dictRegis.Add("@token", Token); dictRegis.Add("@result", verifyAccount.result); dictRegis.Add("@remark_desc", verifyAccount.remark_desc); DataSet ds = new DataSet(); ds = await AppDBCalls.GetDataSet("Evote_VerifyAccount", dictRegis); return(Reformatter.Validate_DataTable(ds.Tables[0])); }