mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
RootDir Adds/Deletes update the database when the action occurs, no more awkward saving tactic.
This commit is contained in:
parent
fbdc752f77
commit
3a6cf56db1
4 changed files with 62 additions and 49 deletions
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using NzbDrone.Core.Repository;
|
||||
using SubSonic.Repository;
|
||||
|
@ -21,9 +22,9 @@ namespace NzbDrone.Core.Providers
|
|||
return _sonioRepo.All<RootDir>().ToList();
|
||||
}
|
||||
|
||||
public virtual void Add(RootDir rootDir)
|
||||
public virtual int Add(RootDir rootDir)
|
||||
{
|
||||
_sonioRepo.Add(rootDir);
|
||||
return Convert.ToInt32(_sonioRepo.Add(rootDir));
|
||||
}
|
||||
|
||||
public virtual void Remove(int rootDirId)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue