private void RemoveFranchiseeFromHistoricoVendas(int franqId)
 {
     using (HistoricoVendasSession s = new HistoricoVendasSession())
     {
         using (var das = s.CreateDataAccessScope(false))
         {
             IMapperHistoricoVendas map = s.CreateMapperHistoricoVendas();
             map.DeleteAllWithFranqId(franqId);
         }
     }
 }
 private void RemoveFranqueadoFromHistoricoVendas(int key)
 {
     using (HistoricoVendasSession s = new HistoricoVendasSession())
     {
         using (var das = s.CreateDataAccessScope(false))
         {
             IMapperHistoricoVendas prodMap = s.CreateMapperHistoricoVendas();
             prodMap.DeleteAllWithFranqId(key);
         }
     }
 }