public JsonResult GetSampleData(string fileName) { fileParsingHelper = new FileParsingHelper(String.Concat(Server.MapPath("~/Resc/SampleData/"), fileName)); return(Json(fileParsingHelper.ReadData(), JsonRequestBehavior.AllowGet)); }