public ActionResult AllMetrics()
 {
     if (Session["userName"] == null)
     {
         return(RedirectToAction("Login", "Home"));
     }
     else
     {
         List <MetricsDataDetails> metricsDataDetails = DataGetter.AllMetricsGetter();
         if (metricsDataDetails.Count == 0)
         {
             ViewBag.noData = "No Data";
         }
         ViewBag.metricsDataDetails = metricsDataDetails;
         return(View(ViewBag.metricsDataDetails));
     }
 }