public async Task <ActionResult <Product> > GetAsync(int?id)
 {
     return(await _repository.GetAsync(id));
 }
示例#2
0
 public async Task <ActionResult <Product> > GetAsync(int?id) => await _repository.GetAsync(id);