コード例 #1
0
 public JsonResult Update(DomainInforModel model)
 {
     var modelUpdate = new DomainInfor()
     {
         Id = model.Id,
         DomainId = model.DomainId,
         TabNameId = model.TabNameId,
         Content = model.Content
     };
     modelUpdate = _domainInforService.Update(modelUpdate);
     return Json(new {Id = modelUpdate.Id}, JsonRequestBehavior.AllowGet);
 }
コード例 #2
0
        public JsonResult Create(DomainInforModel model )
        {
            var modelInsert = new DomainInfor()
                                  {
                                      DomainId = model.DomainId,
                                      TabNameId = model.TabNameId,
                                      Content = model.Content
                                  };
         modelInsert=_domainInforService.Insert(modelInsert);

            return Json(new {Id = modelInsert.Id}, JsonRequestBehavior.AllowGet);
        }