public IActionResult Customers(int id)
 {
     try
     {
         var customer = _customerFactory.Get(id);
         return(Ok(customer));
     }
     catch (Exception)
     {
         return(BadRequest());
     }
 }
Exemplo n.º 2
0
        public customer GetCliente(int id)
        {
            customer customer = new customer();

            try
            {
                customer = customerFactory.Get(id);
                return(customer);
            }
            catch (System.Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 3
0
        public IActionResult Customer(int id)
        {
            var customer = _customerfactory.Get(id);

            return(Ok(customer));
        }