public ActionResult DeleteConfirmed(int id)
        {
            LicencedFor licencedFor = db.LicencedFors.Find(id);

            db.LicencedFors.Remove(licencedFor);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Car,Bike")] LicencedFor licencedFor)
 {
     if (ModelState.IsValid)
     {
         db.Entry(licencedFor).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(licencedFor));
 }
        public ActionResult Create([Bind(Include = "Id,Car,Bike")] LicencedFor licencedFor)
        {
            if (ModelState.IsValid)
            {
                db.LicencedFors.Add(licencedFor);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(licencedFor));
        }
        // GET: LicencedFors/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            LicencedFor licencedFor = db.LicencedFors.Find(id);

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