Пример #1
0
 public IEnumerable<SkateEntity> GetAll()
 {
     var item = new SkateEntity { Id = 1, Name = "Paul Rodriguez" };
     yield return item;
     item = new SkateEntity { Id = 2, Name = "Luan Oliveira" };
     yield return item;
 }
Пример #2
0
 public SkateEntity Get()
 {
     var item = new SkateEntity { Id = 1, Name = "Paul Rodriguez" };
     return item;
 }