コード例 #1
0
 public async Task<IActionResult> AddExperienceCategoryGroup([FromBody] ExperienceCategoryGroup experienceCategoryGroup)
 {
     try
     {
         var userId = User.Identity.Name;
         experienceCategoryGroup.ApplicationUserId = userId;
         experienceCategoryGroup = await _organizerService.AddExperienceCategoryGroupAsync(experienceCategoryGroup);
         return Ok(experienceCategoryGroup);
     }
     catch (Exception ex)
     {
         return BadRequest(ex.Message);
     }
 }