balance fix sponsored by exexexe ex

This commit is contained in:
Lan
2020-02-16 22:23:23 +02:00
parent 6ae58b25b5
commit fc0948f74e

View File

@@ -434,7 +434,7 @@ namespace Kehyeedra3
using (var Database = new ApplicationDbContextFactory().CreateDbContext()) using (var Database = new ApplicationDbContextFactory().CreateDbContext())
{ {
user = Database.Users.FirstOrDefault(x => x.Id == otherUser.Id); user = Database.Users.FirstOrDefault(x => x.Id == (otherUser == null ? Context.User.Id : otherUser.Id));
buser = Database.Users.FirstOrDefault(x => x.Id == 0); buser = Database.Users.FirstOrDefault(x => x.Id == 0);
suser = Database.Users.FirstOrDefault(x => x.Id == 1); suser = Database.Users.FirstOrDefault(x => x.Id == 1);
} }