Ejemplo n.º 1
0
        // GET: Cabinet/Menu/List
        public ActionResult List()
        {
            if (!SessionHelpers.IsAuthentificated())
            {
                return(RedirectToAction("Login", "Authorize"));
            }

            var operation2 = new LoadAllDoctorsOperation();

            operation2.ExcecuteTransaction();
            return(View(operation2._doctors));
        }
Ejemplo n.º 2
0
        public ActionResult Delete(int[] ids)
        {
            if (!SessionHelpers.IsAuthentificated())
            {
                return(RedirectToAction("Login", "Authorize"));
            }
            DeleteDoctorsOperation op = new DeleteDoctorsOperation(ids);

            op.ExcecuteTransaction();

            var operation = new LoadAllDoctorsOperation();

            operation.ExcecuteTransaction();

            return(PartialView("Partial/_listOfDoctorsPartial", operation._doctors));
        }
Ejemplo n.º 3
0
        public ActionResult Index()
        {
            var op = new LoadAllDoctorsOperation();

            op.ExcecuteTransaction();
            ViewBag.Doctors = op._doctors;
            var op2 = new LoadAllProductsOperation();

            op2.ExcecuteTransaction();
            ViewBag.Products = op2._products;
            var op3 = new LoadCommentsOperation(1, 4);

            op3.ExcecuteTransaction();
            ViewBag.Comments       = op3._comments;
            ViewBag.NavMenuEnabled = true;
            return(View(/*op._pageDescription*/));
        }