public ActionResult Index(bool isredirected = false) { var intervals = _excelRepository.GetIntervalDatas(); if (isredirected) { ViewBag.Message = "File uploaded successfully."; } return(View(intervals)); }