// GET: Admin/User public ActionResult Index(string keySearch, int page = 1, int pageSize = 5) { var userManage = new UserManageDAO(); var model = userManage.ListAll(keySearch, page, pageSize); return(View(model)); }
public JsonResult ChangeStatus(long id) { var result = new UserManageDAO().ChangeStatus(id); return(Json(new { status = result })); }
public ActionResult DeleteUser(long id) { var result = new UserManageDAO().DeleteUser(id); if (result == true) { return(RedirectToAction("Index")); } else { return(RedirectToAction("Index")); } }