public ActionResult RecordReward( [FromQuery] string username, [FromQuery] string gaProvider, [FromQuery] string gaId, [FromQuery] string steamUsername, [FromQuery] string steamAppId, [FromQuery] string activationKey, [FromQuery] string hmac) { try { RecordRewardRequest request = new RecordRewardRequest { Username = username, GiveawaysProvider = gaProvider, GiveawayId = gaId, SteamUsername = steamUsername, SteamAppId = steamAppId, ActivationKey = activationKey, HmacToken = hmac }; service.RecordReward(request); return(Ok()); } catch (Exception ex) { ErrorResponse response = new ErrorResponse(ex); return(BadRequest(response)); } }