public ActionResult DeleteConfirmed(int id)
        {
            Rep_EmpLeaveApplication rep_EmpLeaveApplication = db.Rep_EmpLeaveApplication.Find(id);

            db.Rep_EmpLeaveApplication.Remove(rep_EmpLeaveApplication);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "empLeaveAppID,empID,Fullname,LeaveTypeDescription,DateFiled,StartDate,EndDate,AppliedHours,IsApproved,IsCancelled,Supervisor,DateAction,empAttendanceMainID,LeaveReason")] Rep_EmpLeaveApplication rep_EmpLeaveApplication)
 {
     if (ModelState.IsValid)
     {
         db.Entry(rep_EmpLeaveApplication).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(rep_EmpLeaveApplication));
 }
        // GET: LeaveApplicationsSummaryReport/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Rep_EmpLeaveApplication rep_EmpLeaveApplication = db.Rep_EmpLeaveApplication.Find(id);

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