コード例 #1
0
 public static IEnumerable <Platform> GetAll()
 {
     return(PlatformsRepository.GetAll());
 }
コード例 #2
0
        public async Task <IActionResult> GetAll()
        {
            var platforms = await _platforms.GetAll();

            return(Ok(platforms));
        }
コード例 #3
0
        public static Models.Platform Get(int id)
        {
            var platforms = PlatformsRepository.GetAll();

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