Example #1
0
        public IActionResult Edit([FromBody] CustomerEdit customerEdit)
        {
            Response <Customer> response = new Response <Customer>();
            Customer            customer = _customerRepository.Update(customerEdit.ToCostumer());

            customer.Senha = null;

            response.Data = customer;
            return(Ok(response));
        }