public IActionResult RmGroup(int id, [FromBody] AddUserGroupModel model) { var userGroup = new UserGroup { UserId = id, GroupId = model.GroupId }; _userService.RemoveGroup(userGroup, LoggedInUser); return(Ok()); }
public IActionResult AddGroup(int id, [FromBody] AddUserGroupModel model) { _userService.AddGroup(id, model.GroupId, LoggedInUser); return(Ok()); }