mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 04:57:35 +00:00
possibly fix a 404
This commit is contained in:
parent
6245822bee
commit
0c1c47c98b
1 changed files with 4 additions and 2 deletions
|
@ -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) });
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue