mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 07:46:05 -07:00
Switched over to the new service
This commit is contained in:
parent
f5cb4d6879
commit
5f26aecb98
8 changed files with 30 additions and 28 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue