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