public ActionResult Editlocation([Bind(Include = "ID,location")] drill_locations location)
 {
     //TODO: This action need to be deeply reviewed
     if (ModelState.IsValid)
     {
         db.Entry(location).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("locations"));
     }
     return(View(location));
 }
        public ActionResult Createlocation([Bind(Include = "ID,location")] drill_locations location)
        {
            //1. Convert the entry to Db Model
            if (ModelState.IsValid == true)
            {
                //TODO: This action need to be deeply reviewed
                db.drill_locations.Add(location);
                db.SaveChanges();
                return(RedirectToAction("locations"));
            }

            return(View(location));
        }
        // GET: drills/Deletelocations/5
        public ActionResult Deletelocations(int?id)
        {
            //TODO: This action need to be deeply reviewed
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            drill_locations location = db.drill_locations.Find(id);

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