예제 #1
0
        public IActionResult Delete(Guid id)
        {
            try
            {
                var perfil = _perfilRepository.BuscarPorId(id);

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

                _perfilRepository.Deletar(id);
                return(Ok(id));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }