常用方法
常用方法
常用方法
常用方法
public IActionResult Get(string name) { var customer = customers.GetCustomerByName(name); if (customer == null) { return(NotFound("No customer found with the given name")); } return(Ok(customer)); }