public UserDetails GetUserDetailByUserName(string userName) { return(UserDetails.FirstOrDefault(p => p.UserName == userName)); }