Switched over to the new service

This commit is contained in:
tidusjar 2016-03-18 11:06:27 +00:00
parent f5cb4d6879
commit 5f26aecb98
8 changed files with 30 additions and 28 deletions

View file

@ -50,16 +50,15 @@ namespace PlexRequests.Core
return Repo.GetAll().Any(x => x.ProviderId == providerId);
}
public void DeleteRequest(int tmdbId)
public void DeleteRequest(RequestedModel model)
{
var entity = Repo.GetAll().FirstOrDefault(x => x.ProviderId == tmdbId);
var entity = Repo.Get(model.Id);
Repo.Delete(entity);
}
public void UpdateRequest(RequestedModel model)
public bool UpdateRequest(RequestedModel model)
{
Repo.Update(model);
return Repo.Update(model);
}
/// <summary>