public static int?GetUserID(this NancyModule module) { var user = module.GetUser(); return(user == null ? null : user.ID); }