public DBModel()
 {
     try
         {
             db = new AutoSkolaDBEntities();
         }
         catch (Exception e)
         {
             Console.WriteLine("error db: " + e.Message.ToString());
         }
 }
 public ActionResult Raskrizja()
 {
     AutoSkolaDBEntities db = new AutoSkolaDBEntities();
     if (i >= 5) i = 0;
     if (Request.IsAjaxRequest())
     {
         return View(getData(i++));
     }
     else
     {
         return View(getData(i));
     }
 }