// GET: MaintenanceType
        public ActionResult Index(int maintenanceType = 1)
        {
            MaintenanceTypeRepo maintenanceTypeRepo = new MaintenanceTypeRepo();
            var model = maintenanceTypeRepo.getMaintenanceTypeByID(maintenanceType);

            return(View(model));
        }
        public ActionResult BindMaintenanceTypeList()
        {
            MaintenanceTypeRepo maintenanceTypeRepo = new MaintenanceTypeRepo();
            var model = maintenanceTypeRepo.getMaintenanceTypeList();

            return(Json(model, JsonRequestBehavior.AllowGet));
        }
        public ActionResult DeleteMaintenanceTypeByID(int id)
        {
            MaintenanceTypeRepo maintenanceTypeRepo = new MaintenanceTypeRepo();
            var model = maintenanceTypeRepo.deleteMaintType(id);

            return(Json(model, JsonRequestBehavior.AllowGet));
        }
        public ActionResult CreateMaintenanceType(MaintenanceTypeDto maintType)
        {
            var maintTypeRepo = new MaintenanceTypeRepo();
            var statusLst     = maintTypeRepo.insertMaintenanceType(maintType);

            return(Json("Record saved successfully."));
        }