Ejemplo n.º 1
0
        public (bool created, int reportId) CreateReport(int venueId, VenueReportType reportType, string hostname, string notes, int?versionNumber)
        {
            ParamIs.NotNull(() => hostname);
            ParamIs.NotNull(() => notes);

            return(HandleTransaction(ctx => {
                return new Model.Service.Queries.EntryReportQueries().CreateReport(ctx, PermissionContext,
                                                                                   entryLinkFactory,
                                                                                   (song, reporter, notesTruncated) => new VenueReport(song, reportType, reporter, hostname, notesTruncated, versionNumber),
                                                                                   () => reportType != VenueReportType.Other ? enumTranslations.Translation(reportType) : null,
                                                                                   venueId, reportType, hostname, notes);
            }));
        }
Ejemplo n.º 2
0
 public void PostReport(int id, VenueReportType reportType, string notes, int?versionNumber)
 {
     queries.CreateReport(id, reportType, WebHelper.GetRealHost(Request), notes ?? string.Empty, versionNumber);
 }