public IActionResult Customers(int id) { try { var customer = _customerFactory.Get(id); return(Ok(customer)); } catch (Exception) { return(BadRequest()); } }
public customer GetCliente(int id) { customer customer = new customer(); try { customer = customerFactory.Get(id); return(customer); } catch (System.Exception ex) { throw ex; } }
public IActionResult Customer(int id) { var customer = _customerfactory.Get(id); return(Ok(customer)); }