public ActionResult Search(string name) { string currentUser = User.Identity.Name; FriendData data = new FriendData(currentUser); data.SearchFor(name); return View("~/Views/Web/Friends.cshtml", data); }
public ActionResult Search(User user, string name) { FriendData data = new FriendData("matt"); data.SearchFor(name); return View("Web/Friends", data); }