public ActionResult DeleteConfirmed(Guid id)
        {
            Security_Logins_Log security_Logins_Log = db.Security_Logins_Log.Find(id);

            db.Security_Logins_Log.Remove(security_Logins_Log);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Login,Source_IP,Logon_Date,Is_Succesful")] Security_Logins_Log security_Logins_Log)
 {
     if (ModelState.IsValid)
     {
         db.Entry(security_Logins_Log).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.Login = new SelectList(db.Security_Logins, "Id", "Login", security_Logins_Log.Login);
     return(View(security_Logins_Log));
 }
        public ActionResult Create([Bind(Include = "Id,Login,Source_IP,Logon_Date,Is_Succesful")] Security_Logins_Log security_Logins_Log)
        {
            if (ModelState.IsValid)
            {
                security_Logins_Log.Id = Guid.NewGuid();
                db.Security_Logins_Log.Add(security_Logins_Log);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            ViewBag.Login = new SelectList(db.Security_Logins, "Id", "Login", security_Logins_Log.Login);
            return(View(security_Logins_Log));
        }
        // GET: Security_Logins_Log/Details/5
        public ActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Security_Logins_Log security_Logins_Log = db.Security_Logins_Log.Find(id);

            if (security_Logins_Log == null)
            {
                return(HttpNotFound());
            }
            return(View(security_Logins_Log));
        }
        // GET: Security_Logins_Log/Edit/5
        public ActionResult Edit(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Security_Logins_Log security_Logins_Log = db.Security_Logins_Log.Find(id);

            if (security_Logins_Log == null)
            {
                return(HttpNotFound());
            }
            ViewBag.Login = new SelectList(db.Security_Logins, "Id", "Login", security_Logins_Log.Login);
            return(View(security_Logins_Log));
        }