public ActionResult DetailsEdit(int id,
            string appFrameSelector = "",           //# for used in Maintenance-> index page to pass app frame Selector of the iframe
            string menuButtonSelector = ""          //# for used in Maintenance-> index page to pass menu buttonSelector of the iframe
            )
        {
            MaintenanceDetailsViewModel model;

            //# validation
            if (id < 0)
                throw new SystemException("Invalid Entity ID");

            model = new MaintenanceDetailsViewModel()
            {
                id = id,
                IsClone = false,
                RelateTableName = "maintenance",
                Mode = PageMode.Edit,
                CustomAppFrameSelector = appFrameSelector,
                CustomMenuButtonSelector = menuButtonSelector
            };

            return View("Details", model);
        }
        public ActionResult DetailsClone(int cloneFrom_ID, int masterCustomerID)
        {
            MaintenanceDetailsViewModel model;

            //# validation
            if (masterCustomerID < 0)
                throw new SystemException("Invalid Entity ID");

            model = new MaintenanceDetailsViewModel()
            {
                IsClone = true,
                RelateTableName = "maintenance",
                MasterCustomerID = masterCustomerID,
                Mode = PageMode.Add,
                CloneFrom_ID = cloneFrom_ID
            };

            return View("Details", model);
        }