Ejemplo n.º 1
0
        public ActionResult Realize(int id)
        {
            Visit visit = _visits.GetById(id);

            if (visit != null)
            {
                _visits.SetStatus(visit, "Zrealizowana");
                return(RedirectToAction("Index"));
            }
            return(View());
        }
Ejemplo n.º 2
0
        public IActionResult ChooseRes(int id)
        {
            var currentVisit = _visits.GetById(id);

            ViewBag.Result = _result.GetResultsByVisit(currentVisit);

            var currentVisitTests = _result.GetTestsByVisit(currentVisit);

            CartHelper.SetVisitId(currentVisit.Id);
            return(View(currentVisitTests));
        }