diff options
| author | Michael <[email protected]> | 2017-03-24 12:00:45 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-24 12:00:45 -0400 |
| commit | 0c1c47c98b580c8869b873ade0e42f228b1f590d (patch) | |
| tree | ee2b6bb444d65d6cd4908d26a2ca47093f58b6ac /Project-Unite/Controllers/ProfilesController.cs | |
| parent | 6245822bee2dd31dc0e744526d1971028d771e97 (diff) | |
| download | project-unite-0c1c47c98b580c8869b873ade0e42f228b1f590d.tar.gz project-unite-0c1c47c98b580c8869b873ade0e42f228b1f590d.tar.bz2 project-unite-0c1c47c98b580c8869b873ade0e42f228b1f590d.zip | |
possibly fix a 404
Diffstat (limited to 'Project-Unite/Controllers/ProfilesController.cs')
| -rw-r--r-- | Project-Unite/Controllers/ProfilesController.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Project-Unite/Controllers/ProfilesController.cs b/Project-Unite/Controllers/ProfilesController.cs index 46b9e80..ef53f6f 100644 --- a/Project-Unite/Controllers/ProfilesController.cs +++ b/Project-Unite/Controllers/ProfilesController.cs @@ -59,8 +59,9 @@ namespace Project_Unite.Controllers like.IsDislike = true; db.Likes.Add(like); } + string tid = topic.UserId; db.SaveChanges(); - return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(topic.UserId) }); + return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(tid) }); } @@ -96,8 +97,9 @@ namespace Project_Unite.Controllers like.IsDislike = false; db.Likes.Add(like); } + string tid = topic.UserId; db.SaveChanges(); - return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(topic.UserId) }); + return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(tid) }); } |
