常用方法
常用方法
常用方法
常用方法
public async Task<IActionResult> AddAgeCategoryGroup([FromBody] AgeCategoryGroup ageCategoryGroup) { try { var userId = User.Identity.Name; ageCategoryGroup.ApplicationUserId = userId; ageCategoryGroup = await _organizerService.AddAgeCategoryGroupAsync(ageCategoryGroup); return Ok(ageCategoryGroup); } catch(Exception ex) { return BadRequest(ex.Message); } }