Exemplo n.º 1
0
        public ActionResult ChangeCategory(string category, string username, string categoryFilter)
        {
            var rep        = new FriendshipRepository(context);
            var friendship = rep.GetFriendship(username, User.Identity.Name);

            rep.UpdateCategory(category, User.Identity.Name, friendship);
            return(RedirectToAction("Friendship", new { username = User.Identity.Name, category = categoryFilter }));
        }