Beispiel #1
0
        public ActionResult SaveCfgDefinition(CfgDefinition model)
        {
            InkeyResult result = new InkeyResult();

            _cfgManagerService.AddOrUpdateAllCfgDefinition(model);
            return(Json(result));
        }
 public void AddOrUpdateAllCfgDefinition(CfgDefinition model)
 {
     if (model.DefId != Guid.Empty)
     {
         _cfgManagerDao.UpdateAllCfgDefinition(model);
     }
     else
     {
         model.DefId = Guid.NewGuid();
         _cfgManagerDao.InsertCfgDefinition(model);
     }
 }
Beispiel #3
0
        public ActionResult CfgDefinitionAdd()
        {
            var data = new CfgDefinition();

            return(View("CfgDefinitionEdit", data));
        }