Ejemplo n.º 1
0
        public override MembershipUser GetUser(string login, bool userIsOnline)
        {
            var userContext = new Na_project();
            var user        = userContext.Agents.SingleOrDefault(x => x.Login == login);

            if (user != null)
            {
                return(new MembershipUser("AdminMemberProvider", user.Name, user.FId, user.Login,
                                          string.Empty, string.Empty, true, false, DateTime.MinValue,
                                          DateTime.MinValue, DateTime.MinValue, DateTime.Now, DateTime.Now));
            }
            return(null);
        }
Ejemplo n.º 2
0
 public AdminMemberProvider(Na_project database) : base()
 {
     _db = database ?? new Na_project();
 }