public User GetCurrentUser() { if (!User.Identity.IsAuthenticated) { return(null); } var db = new UserBookmarksRepository(_conn); return(db.GetUserByEmail(User.Identity.Name)); }
private User GetCurrentUser() { var db = new UserBookmarksRepository(_conn); return(db.GetUserByEmail(User.Identity.Name)); }