Exemplo n.º 1
0
 // GET: Orders/Details/5
 public async Task<IActionResult> Details(int id)
 {
     try
     {
         return View(await _orders.GetByIdAsync(id));
     }
     catch (Exception)
     {
         return BadRequest();
     }
 }