public ActionResult DeleteConfirmed(int id)
        {
            tblMaloletnoLouse tblMaloletnoLouse = db.tblMaloletnoLice.Find(id);

            db.tblMaloletnoLice.Remove(tblMaloletnoLouse);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "MaloletnoLiceID,UverenjeODrzavljanstvu,IzvodMaticneKnjigeRodjenih,UplaceneNaknade,SaglasnostRoditelja,Fotografija")] tblMaloletnoLouse tblMaloletnoLouse)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tblMaloletnoLouse).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tblMaloletnoLouse));
 }
        // GET: tblMaloletnoLices/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tblMaloletnoLouse tblMaloletnoLouse = db.tblMaloletnoLice.Find(id);

            if (tblMaloletnoLouse == null)
            {
                return(HttpNotFound());
            }
            return(View(tblMaloletnoLouse));
        }