private void PopulateDropDownLists() { if (catb.GetQtdCategoria() > 0) { ViewBag.CategoriaId = new SelectList(catb.GetActivedCategorias(), "Id", "Nome"); } if (cob.GetQtdCobrancas() > 0) { ViewBag.CobrancaId = new SelectList(cob.GetCobrancasList(), "Id", "Nome"); } }