예제 #1
0
        public IActionResult Patch(int id)
        {
            try
            {
                Cliente currentModel = _clienteBusiness.Get(id);

                if (currentModel == null)
                {
                    return(NotFound());
                }

                _clienteBusiness.Active(currentModel);
                return(Ok());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }