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); }
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); }