Calendar now using EpisodeResource

This commit is contained in:
Mark McDowall 2013-04-30 18:54:15 -07:00
commit 11cef70406
10 changed files with 61 additions and 93 deletions

View file

@ -2,6 +2,7 @@
using System.Collections.Generic;
using AutoMapper;
using Nancy;
using NzbDrone.Api.Episodes;
using NzbDrone.Api.Extensions;
using NzbDrone.Core.Tv;
@ -31,7 +32,7 @@ namespace NzbDrone.Api.Calendar
if(queryEnd.HasValue) end = DateTime.Parse(queryEnd.Value);
var episodes = _episodeService.EpisodesBetweenDates(start, end);
return Mapper.Map<List<Episode>, List<CalendarResource>>(episodes).AsResponse();
return Mapper.Map<List<Episode>, List<EpisodeResource>>(episodes).AsResponse();
}
}
}