public String GetChartDataAsJson(String fileName, char fileSeparator = ';', bool hasFileLabels = true) { var chartService = new ChartService(); string userName = User.Identity.IsAuthenticated ? User.Identity.Name : "DefaultUser"; return(chartService.ChartDataToJson(chartService.GetChartDataFromFile(userName, fileName, fileSeparator), hasFileLabels)); }