public object RemoveClient(Guid id) { ClientBLL.DeleteClient(id, OnlineUser.User.ID); return(new { Success = true }); }
public ActionResult DeleteClient(int UserId) { clientBLL.DeleteClient(UserId); TempData["Delete"] = "1"; return(RedirectToAction("client")); }