mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
First pass at the plex update service
This commit is contained in:
parent
f2819664e7
commit
7636409790
25 changed files with 661 additions and 16 deletions
|
@ -62,6 +62,16 @@ namespace PlexRequests.Core
|
|||
Repo.Update(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates all the entities. NOTE: we need to Id to be the original entity
|
||||
/// </summary>
|
||||
/// <param name="model">The model.</param>
|
||||
/// <returns></returns>
|
||||
public bool BatchUpdate(List<RequestedModel> model)
|
||||
{
|
||||
return Repo.UpdateAll(model);
|
||||
}
|
||||
|
||||
public RequestedModel Get(int id)
|
||||
{
|
||||
return Repo.Get(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue