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());
 }
 public PatientsController(PatientHandlingContext context)
 {
     db = context;
     treeRepository = new TreeRepository(db);
     patientRepository = new PatientRepository(db);
 }