implement method on racesession controller for exporting.
This commit is contained in:
parent
aebf90259b
commit
895fd536c2
@ -1,4 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Reflection;
|
||||||
using Interfaces;
|
using Interfaces;
|
||||||
using Nancy;
|
using Nancy;
|
||||||
using Nancy.Extensions;
|
using Nancy.Extensions;
|
||||||
@ -11,7 +13,8 @@ namespace RaceLapTimer.ApiControllers
|
|||||||
private readonly IDbProvider _provider;
|
private readonly IDbProvider _provider;
|
||||||
private readonly INotifierManager _notifier;
|
private readonly INotifierManager _notifier;
|
||||||
|
|
||||||
public RaceSessionApiModule(IDbProvider provider, INotifierManager notifierManager) : base("/api/racesession")
|
public RaceSessionApiModule(IDbProvider provider
|
||||||
|
, INotifierManager notifierManager) : base("/api/racesession")
|
||||||
{
|
{
|
||||||
_provider = provider;
|
_provider = provider;
|
||||||
_notifier = notifierManager;
|
_notifier = notifierManager;
|
||||||
@ -20,6 +23,12 @@ namespace RaceLapTimer.ApiControllers
|
|||||||
Post["/create"] = args => CreateRaceSession();
|
Post["/create"] = args => CreateRaceSession();
|
||||||
Get["/historic"] = args => GetHistoricRaceSessions();
|
Get["/historic"] = args => GetHistoricRaceSessions();
|
||||||
Delete["/historic/{id}"] = args => DeleteHistoricRaceSession(args);
|
Delete["/historic/{id}"] = args => DeleteHistoricRaceSession(args);
|
||||||
|
Get["/export/{id}"] = args => GetRaceExport(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
private dynamic GetRaceExport(dynamic args)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
private dynamic DeleteHistoricRaceSession(dynamic args)
|
private dynamic DeleteHistoricRaceSession(dynamic args)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user