private void PopulatePetiscosDropDownList(object selectedPetisco = null) { var petiscos = backofficeFacade.GetAllPetiscos(); ViewBag.PetiscoId = new SelectList(petiscos, "Id", "Nome", selectedPetisco); }
public ActionResult Index() { var petiscos = backofficeFacade.GetAllPetiscos(); return(View(petiscos)); }