Example #1
0
        public byte[] GetStatsByDaysReport(ClaimsPrincipal user, string start, string end, string searchString)
        {
            var orders = GetHistory(user, start, end, searchString);

            String csv = OrderReport.CreateStatisticsByDays(orders);

            var data   = System.Text.Encoding.UTF8.GetBytes(csv);
            var result = Encoding.UTF8.GetPreamble().Concat(data).ToArray();

            return(result);
        }
Example #2
0
        public byte[] GetHistoryReport(ClaimsPrincipal user, string start, string end, string searchString)
        {
            var orders = GetHistory(user, start, end, searchString);

            String csv = OrderReport.CreateOrderCSV(orders);

            //CultureInfo.CurrentCulture = new CultureInfo("ru-RU");
            var data   = System.Text.Encoding.UTF8.GetBytes(csv);
            var result = Encoding.UTF8.GetPreamble().Concat(data).ToArray();

            return(result);
        }