public String CreateReport(DateOfOrder date) { String complete = @"FileReports\Report_" + DateTime.Now.ToString("dd-MM-yyyy") + "_" + HelperFunctions.GetRandomNumber() + ".txt"; System.IO.File.WriteAllText(complete, ReportText.GetRegistredPharmacies() + "! Report about consumption of medicine\n\n\n" + ReportText.getReportText(date)); return(complete); }
public ReportService(MyDbContext context) { SftpService = new SftpService(); HelperFunctions = new HelperFunctions(); HttpService = new HttpService(); ReportText = new ReportText(context); SmptServerService = new SmptServerService(); }