/// <summary> /// Dapper /// </summary> /// <returns></returns> public List<VendaComValorTotalDTO> GetVendaComValorTotal() { VendaSQLBuilder SqlBuilder = new VendaSQLBuilder(); string Sql = SqlBuilder.GetVendasComValorTotalCalculado(); DataSystemAccess ds = new DataSystemAccess(); try { return ds.Get<VendaComValorTotalDTO>(Sql); } catch (Exception) { throw; } }
public List<VendaQuantidadeItensDTO> GetVendaQuantidadeItensDTO (int? Min = null, int? Max = null) { VendaSQLBuilder SqlBuilder = new VendaSQLBuilder(); string Sql = SqlBuilder.GetVendasQuantidadeItens(Min.HasValue, Max.HasValue); DataSystemAccess ds = new DataSystemAccess(); try { return ds.Get<VendaQuantidadeItensDTO>(Sql, new { Minimo = Min.GetValueOrDefault(), Maximo = Max.GetValueOrDefault() }); } catch (Exception) { throw; } }