public ToyWcf GetToy(string name)
 {
     return(Map(repository.GetAll().Where(n => n.Name == name).First()));
 }
Пример #2
0
 // GET api/values
 public IEnumerable <Toy> Get()
 {
     return(repository.GetAll());
 }