Exemple #1
0
        // GET: Korisnik
        public ActionResult Index()
        {
            var tmpKorpa = MvcApplication.GetCurrentKorpa(Session["brojSesije"].ToString());

            return(View(new ViewDataContainer(tmpKorpa,
                                              new MainView())));
        }
Exemple #2
0
        public ActionResult Delete(int?key)
        {
            var db = new Potrcko();

            if (key == null)
            {
                return(HttpNotFound());
            }
            var currentKorpa = MvcApplication.GetCurrentKorpa(Session["brojSesije"].ToString());

            return(View(new ViewDataContainer(currentKorpa.SadrzajKorpe.First(sadrzaj => sadrzaj.Key.Equals(key)), new MainView())));
        }