static public List <LevelItem> LoadLevelCollection() { var levels = levelRepository.GetLevels(); foreach (var item in levels) { Debug.WriteLine(item.ToString()); } return(levelRepository.GetLevels()); }
public ApiResponse GetLevels() { try { var levels = levelRepository.GetLevels().ToList(); return(new ApiResponse(true, "Success", levels)); } catch (Exception ex) { throw; } }