public IActionResult Index(int?id) { Customers customer; if (id.HasValue && (customer = repostory.Get(id.Value)) != null) { return(View(customer)); } else { return(NotFound()); } }
public IActionResult Index(int?id) { Customers customer; if (id.HasValue && (customer = repostory.Get(id.Value)) != null) { return(View(customer)); } else { return(NotFound()); } }