public IActionResult CreateRewardPackage([FromBody] RewardFormOptions options) { var rewardPackageOptions = new CreateRewardPackageOptions { Title = options.Title, Description = options.Description, MinAmount = options.MinAmount, Quantity = options.Quantity }; var result = _projectService.AddRewardPackage(options.ProjectId, Globals.UserId, rewardPackageOptions); if (!result.Success) { return(StatusCode((int)result.ErrorCode, result.ErrorText)); } return(Ok()); }