public IActionResult Add([FromBody] int groupId) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _ugService.AddMember(User.Identity.Name, groupId); return(Ok()); }