Exemple #1
0
 public override bool Delete(EntidadBase entidad)
 {
     try
     {
         SqlDao.ExecuteProcedure(_mapper.GetDeleteStatement(entidad));
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Exemple #2
0
        public override void Delete(BaseEntity entity)
        {
            var empresa = (Empresa)entity;

            dao.ExecuteProcedure(mapper.GetDeleteStatement(empresa));
        }
 public override void Delete(BaseEntity entity)
 {
     dao.ExecuteProcedure(_mapper.GetDeleteStatement(entity));
 }