Ejemplo n.º 1
0
 public ActionResult Confirm(Guid id)
 {
     if (Authenticate.IsAuthenticated())
     {
         Relationship relationship = RelationshipManager.LoadById(id);
         relationship.Friend2   = ((User)Session["user"]);
         relationship.isFriend  = true;
         relationship.StartDate = DateTime.Now;
         RelationshipManager.Update(relationship);
         return(View());
     }
     else
     {
         return(RedirectToAction("Login", "User", new { returnurl = HttpContext.Request.Url }));
     }
 }