Make EditUser redirects more useful
This commit is contained in:
parent
f377205532
commit
e5e1c344dc
|
@ -90,9 +90,11 @@ public class EditUserModel : PageModel {
|
||||||
|
|
||||||
user.Balance += amount;
|
user.Balance += amount;
|
||||||
await db.SaveChangesAsync();
|
await db.SaveChangesAsync();
|
||||||
|
Response.Redirect($"/EditUser/{user.Id}");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Response.Redirect($"/");
|
||||||
}
|
}
|
||||||
|
|
||||||
Response.Redirect($"/#{user.Nickname}");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum CardDisplayType {
|
public enum CardDisplayType {
|
||||||
|
|
Loading…
Reference in a new issue