Exemplo n.º 1
0
 public ActionResult Delete(long id)
 {
     _userGroupService.DeleteUserGroup(id);
     return(RedirectToAction("Index"));
 }
Exemplo n.º 2
0
 // function to remove account from group
 /// <summary>
 /// The RemoveAccount
 /// </summary>
 /// <param name="idUser">The idUser<see cref="int"/></param>
 /// <param name="idGroup">The idGroup<see cref="int"/></param>
 /// <returns>The <see cref="ActionResult"/></returns>
 public ActionResult RemoveAccount(int idUser, int idGroup)
 {
     userGroupService.DeleteUserGroup(idUser, idGroup, true);
     return(RedirectToAction("UpdateAccount", "Group", new { id = idGroup }));
 }
Exemplo n.º 3
0
 public Task DeleteUserGroup(int userGroupId)
 {
     return(_userGroupService.DeleteUserGroup(userGroupId));
 }
Exemplo n.º 4
0
 public JsonResult DeleteUserGroup(int id)
 {
     return(Json(_userGroupService.DeleteUserGroup(id)));
 }
Exemplo n.º 5
0
        public IActionResult DeleteUserGroup(string id)
        {
            var result = _service.DeleteUserGroup(id);

            return(DeleteResponse(id, result));
        }
Exemplo n.º 6
0
 public UserGroup DeleteGroup(UserGroup userGroup)
 {
     return(_userGroupService.DeleteUserGroup(userGroup));
 }