public static User User() { User user = daoTemplate.FindUniqueByField <User>(Models.User.EmailProperty, HttpContext.Current.User.Identity.Name); return(user); }
private User GetUser(string userName) { return(daoTemplate.FindUniqueByField <User>(User.EmailProperty, userName)); }