private static Report ConvertDatabaseReport(ReportDataBase.Models.Report reportDataBase) { var report = new Report { AgeReport = reportDataBase.AgeReport, DateTime = reportDataBase.DateTime, ErrorMessage = reportDataBase.ErrorMessage, FirstUserName = reportDataBase.FirstUserName, IsFailed = reportDataBase.IsFailed, SexReport = reportDataBase.SexReport, Theme = reportDataBase.Theme, WayToFile = reportDataBase.WayToFile }; return(report); }
public Task SaveReport(Report report) { return(_reportContext.Add((ReportDataBase.Models.Report)report)); }