fix
This commit is contained in:
@@ -18,4 +18,9 @@ public class AccountAccountCategoryRepository : AppRepository<AccountAccountCate
|
||||
{
|
||||
return RemoveBase(accountAccountCategory) > 0;
|
||||
}
|
||||
|
||||
public bool Add(AccountAccountCategory accountAccountCategory)
|
||||
{
|
||||
return AddBase(accountAccountCategory) > 0;
|
||||
}
|
||||
}
|
||||
@@ -94,7 +94,7 @@ public class AccountRepository : AppRepository<Account>, IAccountRepository
|
||||
.ThenInclude(x => x.Category)
|
||||
.Include(x => x.AccessRights)!
|
||||
.ThenInclude(x => x.User)
|
||||
.Include(x => x.Motions)!
|
||||
//.Include(x => x.Motions)!
|
||||
.FirstOrDefault(x => x.Id == id && x.AccessRights!.Any(r => r.UserId == userId));
|
||||
}
|
||||
|
||||
|
||||
@@ -6,4 +6,5 @@ public interface IAccountAccountCategoryRepository
|
||||
{
|
||||
List<AccountAccountCategory> Get(Guid userId, Guid accountId, Guid categoryId);
|
||||
bool Remove(AccountAccountCategory accountAccountCategory);
|
||||
bool Add(AccountAccountCategory accountAccountCategory);
|
||||
}
|
||||
Reference in New Issue
Block a user