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); })); }
public void PostReport(int id, VenueReportType reportType, string notes, int?versionNumber) { queries.CreateReport(id, reportType, WebHelper.GetRealHost(Request), notes ?? string.Empty, versionNumber); }