// GET: Products/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var product = await OperationsPro.FindAsync(m => m.Id == id); if (product == null) { return(NotFound()); } return(View(product)); }