// GET: api/Towards/5 // To be replace by Database calls public Towards Get(String lineName) { var towardsRepository = new TowardsRepository(); var towards = towardsRepository.Retrieve(); return towards.SingleOrDefault(p => p.LineName.Equals(lineName)); }
// GET: api/Towards public IEnumerable<Towards> Get() { var towardsRepository = new TowardsRepository(); return towardsRepository.Retrieve(); }