Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            TBL_EmployeeLogin tbl_employeelogin = db.TBL_EmployeeLogin.Find(id);

            db.TBL_EmployeeLogin.Remove(tbl_employeelogin);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "LoginId,EmpID,Password,Type,LastLoginOn,CreatedOn")] TBL_EmployeeLogin tbl_employeelogin)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_employeelogin).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.EmpID = new SelectList(db.TBL_EmployeeDetails, "EmpID", "FirstName", tbl_employeelogin.EmpID);
     return(View(tbl_employeelogin));
 }
Ejemplo n.º 3
0
        // GET: /AccountDR/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            TBL_EmployeeLogin tbl_employeelogin = db.TBL_EmployeeLogin.Find(id);

            if (tbl_employeelogin == null)
            {
                return(HttpNotFound());
            }
            return(View(tbl_employeelogin));
        }
Ejemplo n.º 4
0
        // GET: /AccountDR/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            TBL_EmployeeLogin tbl_employeelogin = db.TBL_EmployeeLogin.Find(id);

            if (tbl_employeelogin == null)
            {
                return(HttpNotFound());
            }
            ViewBag.EmpID = new SelectList(db.TBL_EmployeeDetails, "EmpID", "FirstName", tbl_employeelogin.EmpID);
            return(View(tbl_employeelogin));
        }