public ActionResult Delete(long id) { _userGroupService.DeleteUserGroup(id); return(RedirectToAction("Index")); }
// 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 })); }
public Task DeleteUserGroup(int userGroupId) { return(_userGroupService.DeleteUserGroup(userGroupId)); }
public JsonResult DeleteUserGroup(int id) { return(Json(_userGroupService.DeleteUserGroup(id))); }
public IActionResult DeleteUserGroup(string id) { var result = _service.DeleteUserGroup(id); return(DeleteResponse(id, result)); }
public UserGroup DeleteGroup(UserGroup userGroup) { return(_userGroupService.DeleteUserGroup(userGroup)); }