public static IEnumerable <Platform> GetAll()
 {
     return(PlatformsRepository.GetAll());
 }
Example #2
0
 public PlatformsController(PlatformsRepository platformsRepository)
 {
     _platforms = platformsRepository;
 }
        public static Models.Platform Get(int id)
        {
            var platforms = PlatformsRepository.GetAll();

            return(platforms.FirstOrDefault(x => x.Id == id));
        }