public ActionResult CancelOrder(int orderId) { try { if (!Meals.CancelOrder(orderId)) { return(Json(new { success = false })); } var order = new ReportViewModel { Orders = Reports.GetOrdersOfEmployee(UserSession.GetUser().EmployeeId) }; return(Json(new { success = true, message = Json(order.Orders) })); } catch (Exception e) { return(RedirectToAction("Error", "Login")); } }