Exemplo n.º 1
0
 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});
 }
Exemplo n.º 2
0
 public ActionResult OrderStep5(int orderId)
 {
     var repository = new Repository();
     var order = repository.GetVisitHistoryById(orderId);
     ViewBag.Order = order;
     return View();
 }