public ActionResult AddFleet(MCTS_MNT.EntityDataModel.MNT_FLET objFleet)
        {
            bool blnAddedFleet = true;

            try
            {
                objMNTEntity.Entry <MCTS_MNT.EntityDataModel.MNT_FLET>(objFleet).State = System.Data.Entity.EntityState.Added;
                objMNTEntity.SaveChanges();
            }
            catch (Exception ex) { blnAddedFleet = false;  return(RedirectToAction("Fleet", "Home")); }

            if (blnAddedFleet == true)
            {
                return(RedirectToAction("MNTPMSCHEDULE", "Home"));
            }
            else
            {
                return(RedirectToAction("Fleet", "Home"));
            }
        }
 public ActionResult EditFleet(MCTS_MNT.EntityDataModel.MNT_FLET objFleet)
 {
     objMNTEntity.Entry <MCTS_MNT.EntityDataModel.MNT_FLET>(objFleet).State = System.Data.Entity.EntityState.Modified;
     objMNTEntity.SaveChanges();
     return(RedirectToAction("Fleet", "Home"));
 }