Adding/Deleting QualityProfiles will now save/delete the profile from the database to make the process less hacky.

RootDir and UserProfileSection do not inherit the master layout automatically.
This commit is contained in:
Mark McDowall 2011-04-21 17:30:19 -07:00
commit ec8c83760b
8 changed files with 109 additions and 52 deletions

View file

@ -21,9 +21,9 @@ namespace NzbDrone.Core.Providers
_sonicRepo = sonicRepo;
}
public virtual void Add(QualityProfile profile)
public virtual int Add(QualityProfile profile)
{
_sonicRepo.Add(profile);
return Convert.ToInt32(_sonicRepo.Add(profile));
}
public virtual void Update(QualityProfile profile)