static void Main() { CheckBalance.Run(); CheckRate.Run(); ConvertFunds.Run(); PayBeneficiary.Run(); SimplePayment.Run(); }
public async Task <OkObjectResult> CheckRate(int GameId, string UserId) { var request = new CheckRate() { UserId = UserId, GameId = GameId }; var result = await voteServices.Check(request); return(Ok(result)); }
public async Task <CheckRes> Check(CheckRate request) { DynamicParameters parameters = new DynamicParameters(); parameters.Add("@GameId", request.GameId); parameters.Add("@UserId", request.UserId); var result = await SqlMapper.QueryFirstOrDefaultAsync <CheckRes>(cnn : connection, sql : "sp_CheckRate", param : parameters, commandType : CommandType.StoredProcedure); return(result); }
public async Task <CheckRes> Check(CheckRate request) { return(await voteRepository.Check(request)); }