public ICommandResult Execute(DeleteEntidadCommand command) { var Entidad = EntidadRepository.GetById(command.Id); EntidadRepository.Delete(Entidad); unitOfWork.Commit(); return(new CommandResult(true)); }
public bool Delete(int?id) { return(objEntidadRepository.Delete(id)); }