public ActionResult Edit([Bind(Include = "id,CalStartMonth,WeekendStartDay,WeekendEndDay,BusinessunitId,DepartmentId,HrId,HoursDay,IsHalfday,IsLeaveTransfer,IsSkipHolidays,Descriptions,Isactive")] LeaveManagementViewModel leaveManagementViewModel)
 {
     if (ModelState.IsValid)
     {
         db.Entry(leaveManagementViewModel).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(leaveManagementViewModel));
 }
Exemplo n.º 2
0
 public void Save()
 {
     myContext.SaveChanges();
     // Dispose();
 }