Started on the requests rework #865

This commit is contained in:
Jamie.Rees 2017-07-10 15:08:47 +01:00
parent dc9030c2ce
commit 8cf5a4c1fd
14 changed files with 207 additions and 250 deletions

View file

@ -114,6 +114,11 @@ namespace Ombi.Core.Engine
return await allRequests.ToListAsync();
}
public async Task<IEnumerable<ChildRequests>> GetAllChldren(int tvId)
{
return await TvRepository.GetChild().Where(x => x.ParentRequestId == tvId).ToListAsync();
}
public async Task<IEnumerable<TvRequests>> SearchTvRequest(string search)
{
var allRequests = TvRepository.Get();