diff options
Diffstat (limited to 'Project-Unite/Controllers/ProfilesController.cs')
| -rw-r--r-- | Project-Unite/Controllers/ProfilesController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Project-Unite/Controllers/ProfilesController.cs b/Project-Unite/Controllers/ProfilesController.cs index 5140296..46b9e80 100644 --- a/Project-Unite/Controllers/ProfilesController.cs +++ b/Project-Unite/Controllers/ProfilesController.cs @@ -60,7 +60,7 @@ namespace Project_Unite.Controllers db.Likes.Add(like); } db.SaveChanges(); - return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(uid) }); + return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(topic.UserId) }); } @@ -97,7 +97,7 @@ namespace Project_Unite.Controllers db.Likes.Add(like); } db.SaveChanges(); - return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(uid) }); + return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(topic.UserId) }); } |
