public ActionResult RemoveFriend(User user, string friend) { IDAL DAL = new DBDataAL(); DAL.RemoveFriend(user.UserName, friend); FriendData data = new FriendData("matt"); return View("Web/Friends", data); }
public ActionResult RemoveFriend(string friend) { string Name = User.Identity.Name; IDAL DAL = new DBDataAL(); DAL.RemoveFriend(Name, friend); FriendData data = new FriendData(Name); return View("~/Views/Web/Friends.cshtml", data); }