public ActionResult ChangeStatus(int id, int pageSize = 10, int page = 1) { var order = dao.GetByID(id); if (order.Status == 0) { order.Status = 1; } else { order.Status = 0; } dao.UpdateStatus(order); return(RedirectToAction("Index")); }