public static IEnumerable <Platform> GetAll() { return(PlatformsRepository.GetAll()); }
public async Task <IActionResult> GetAll() { var platforms = await _platforms.GetAll(); return(Ok(platforms)); }
public static Models.Platform Get(int id) { var platforms = PlatformsRepository.GetAll(); return(platforms.FirstOrDefault(x => x.Id == id)); }