public ActionResult CancelOrder(int policlinicId, int patientId, int visitHistoryId) { var repository = new Repository(); var history = repository.GetVisitHistoryById(visitHistoryId); repository.SetUnusedAvailableTimeById(history.AvailableTime.AvailableTimeId); repository.DeleteVisitHistory(visitHistoryId); return RedirectToAction("History", new {policlinicId = policlinicId, patientId = patientId}); }
public ActionResult OrderStep5(int orderId) { var repository = new Repository(); var order = repository.GetVisitHistoryById(orderId); ViewBag.Order = order; return View(); }