public static IEnumerable <Platform> GetAll() { return(PlatformsRepository.GetAll()); }
public PlatformsController(PlatformsRepository platformsRepository) { _platforms = platformsRepository; }
public static Models.Platform Get(int id) { var platforms = PlatformsRepository.GetAll(); return(platforms.FirstOrDefault(x => x.Id == id)); }