Esempio n. 1
0
 public async Task <ActionResult <CommodityViewModel> > Get(int id)
 {
     return(Ok(_mapper.Map <CommodityViewModel>(await _commodityRepository.GetByIdAsync(id))));
 }