コード例 #1
0
 public PartialViewResult DeleteNode(int nodeId, int treeId)
 {
     var dataService = new TreeRepository(db);
     dataService.IsLeafNode(nodeId, treeId);
     return PartialView("_Tree", db.Nodes.Where(i => i.TreeID == treeId).ToList());
 }
コード例 #2
0
 public PatientsController(PatientHandlingContext context)
 {
     db = context;
     treeRepository = new TreeRepository(db);
     patientRepository = new PatientRepository(db);
 }