public static List <PlayerActionShortcut> Get(int playerId, string nameStart) { string lowerName = nameStart.ToLower(); return(AllShortcuts.Where(x => x.PlayerId == playerId).Where(x => x.Name.ToLower().StartsWith(lowerName)).ToList()); }
public static List <PlayerActionShortcut> Get(int playerId, TurnPart part) { return(AllShortcuts.Where(x => x.PlayerId == playerId).Where(x => x.Part == part).ToList()); }