Ejemplo n.º 1
0
 // 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));
 }
Ejemplo n.º 2
0
 // GET: api/Towards
 public IEnumerable<Towards> Get()
 {
     var towardsRepository = new TowardsRepository();
     return towardsRepository.Retrieve();
 }