public override void Create(BaseEntity entity) { var empresa = (Empresa)entity; var sqlOperation = mapper.GetCreateStatement(empresa); dao.ExecuteProcedure(sqlOperation); }
public override bool Create(EntidadBase entidad) { try { SqlDao.ExecuteProcedure(_mapper.GetCreateStatement(entidad)); return(true); } catch (Exception) { return(false); } }