public override void DoProcessRequest(IExecutionContext context) { base.DoProcessRequest(context); if (context.CurrentUser.Identity.IsAuthenticated) currentUser = (userProfile)context.CurrentUser; }
public void Flag(int flag, userProfile user) { UserAction userAction = (UserAction)WSApplication.Application.ActivityRoot.GetDocumentFactory("UserAction").CreateDocument(); userAction.ActionId = flag.ToString(); if (user != null) userAction.UserId = user.LocalID; userAction.CreatedOn = System.DateTime.Now; userAction.PostingId = LocalID; userAction.Save(); }
public void Apply(userProfile user, string comment) { applications_Node node = applications.AppendNode(); node.SubmittedBy = user; node.SubmittedOn = DateTime.Now; if (ContentType.Equals(ContentType.Job)) node.SubmittedPosting = user.Posting; node.Comment = comment; Save(); }