示例#1
0
 // GET api/Phone
 public IQueryable <Phone> GetPhones()
 {
     return(service.GetAllPhones().AsQueryable());
 }
示例#2
0
 public async Task <List <Phone> > GetPhones()
 {
     return(await phoneService.GetAllPhones());
 }