public ActionResult ModifyOrder(int orderId, string orderStatus, int isDeleted) { if (isDeleted == 1) { businessLayer.DeleteOrder(orderId); } else { businessLayer.RestoreOrder(orderId); } businessLayer.ChangeOrderStatus(orderId, orderStatus); TempData["message"] = string.Format("Order was successfully updated"); return(RedirectToAction("GetOrders")); }