public IActionResult Index()
        {
            var    NodeList = dscNodeRepository.GetAll().ToList();
            double NodeInSuccessPrecentage = NodeList.Count(n => n.Status == "Success") / (double)NodeList.Count() * 100;
            double NodeInFailurePrecentage = NodeList.Count(n => n.Status == "Failure") / (double)NodeList.Count() * 100;

            ViewData["NodeInSuccessPrecentage"] = string.Format("{0:F2}", NodeInSuccessPrecentage);
            ViewData["NodeInFailurePrecentage"] = string.Format("{0:F2}", NodeInFailurePrecentage);

            return(View(NodeList));
        }
 public IEnumerable <DSCNode> Get()
 {
     return(dscNodeRepository.GetAll());
 }