Beispiel #1
0
 public PartialViewResult AddElement([FromBody] TreeElement treeElement)
 {
     if (ModelState.IsValid)
     {
         treeElement.Guid = Guid.NewGuid();
         var newElement = _treeService.AddElement(treeElement);
         return(PartialView("_TreeElement", newElement));
     }
     return(null);
 }