public IActionResult Update(int id,
                                    [FromBody] UpdateRewardPackageOptions options)
        {
            var result = rewardPackageService.UpdateRewardPackage(id,
                                                                  options);

            if (!result.Success)
            {
                return(StatusCode((int)result.ErrorCode,
                                  result.ErrorText));
            }

            return(Json(result.Data));;
        }
Beispiel #2
0
 public RewardPackageOption UpdateRewardPackage(int id, [FromForm] RewardPackageOption rewardPackageOption)
 {
     return(rewardPackageService.UpdateRewardPackage(id, rewardPackageOption));
 }