public ActionResult <Perfil> DeletePerfil(Guid id) { try { var perfil = _perfiRepository.BuscarPorId(id); if (perfil == null) { return(NotFound()); } _perfiRepository.Remover(id); return(Ok(perfil)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public void Delete(Guid id) { _perfilRepository.Remover(id); }