示例#1
0
        public static User User()
        {
            User user = daoTemplate.FindUniqueByField <User>(Models.User.EmailProperty,
                                                             HttpContext.Current.User.Identity.Name);

            return(user);
        }
示例#2
0
 private User GetUser(string userName)
 {
     return(daoTemplate.FindUniqueByField <User>(User.EmailProperty, userName));
 }