示例#1
0
        public List <CordenatesModel> Get(string name = null)
        {
            CordenatesRepository   cordenatesRepository;
            List <CordenatesModel> clientes;

            try
            {
                cordenatesRepository = new CordenatesRepository(_loggerFactory, _config);

                clientes = cordenatesRepository.Get();
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(clientes);
        }
示例#2
0
        public CordenatesModel Get(int id)
        {
            CordenatesRepository cordenatesRepository;
            CordenatesModel      cordenates;

            try
            {
                cordenatesRepository = new CordenatesRepository(_loggerFactory, _config);

                cordenates = cordenatesRepository.Get(id);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(cordenates);
        }