Removed Repository methods which are not used and are not valid because they do not adhere to tenant scope boundaries

This commit is contained in:
Shaun Walker
2020-02-23 10:45:32 -05:00
parent 00914208ba
commit d18b4d574a
18 changed files with 51 additions and 58 deletions

View File

@ -25,9 +25,9 @@ namespace Oqtane.Repository
this.ServiceProvider = ServiceProvider;
}
public IEnumerable<Models.Module> GetModules()
public IEnumerable<Models.Module> GetModules(int SiteId)
{
return db.Module;
return db.Module.Where(item => item.SiteId == SiteId).ToList();
}
public Models.Module AddModule(Models.Module Module)