Fixed #1583 you can now delete users.

Fixed the issue where the requested by was not showing.
Finally fixed the broken poster paths
This commit is contained in:
tidusjar 2017-10-20 22:07:30 +01:00
parent c3b2ef2f31
commit 1dc8eac035
27 changed files with 157 additions and 155 deletions

View file

@ -48,6 +48,18 @@ namespace Ombi.Store.Repository
return content;
}
public async Task Delete(T request)
{
_db.Remove(request);
await _ctx.SaveChangesAsync();
}
public async Task DeleteRange(IEnumerable<T> req)
{
_db.RemoveRange(req);
await _ctx.SaveChangesAsync();
}
public IIncludableQueryable<TEntity, TProperty> Include<TEntity, TProperty>(
IQueryable<TEntity> source, Expression<Func<TEntity, TProperty>> navigationPropertyPath)
where TEntity : class