コード例 #1
0
        public IActionResult RmGroup(int id, [FromBody] AddUserGroupModel model)
        {
            var userGroup = new UserGroup
            {
                UserId  = id,
                GroupId = model.GroupId
            };

            _userService.RemoveGroup(userGroup, LoggedInUser);
            return(Ok());
        }
コード例 #2
0
 public IActionResult AddGroup(int id, [FromBody] AddUserGroupModel model)
 {
     _userService.AddGroup(id, model.GroupId, LoggedInUser);
     return(Ok());
 }