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); }
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); }