Exemplo n.º 1
0
        public NameResponse GetLevel(int id)
        {
            NameResponse response = new NameResponse();

            try
            {
                Level level = levelServ.FindById(id);
                response.id   = level.id;
                response.name = level.name;
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception.Message.ToString());
            }
            return(response);
        }