// GET: Payments/Create public ActionResult Create() { ViewBag.EmployeeID = new SelectList(objects.GetEmployees(), "EmployeeID", "Identification"); ViewBag.RentContractID = new SelectList(objects.GetRentContracts(), "RentContractID", "Description"); return(View()); }
// GET: RentalContracts/Create public ActionResult Create() { List <SelectListItem> maritals = new List <SelectListItem> { new SelectListItem() { Text = "Unknown", Value = "Unknown" }, new SelectListItem() { Text = "Single", Value = "Single" }, new SelectListItem() { Text = "Widdow", Value = "Widdow" }, new SelectListItem() { Text = "Married", Value = "Married" }, new SelectListItem() { Text = "Divorced", Value = "Divorced" }, new SelectListItem() { Text = "Separated", Value = "Separated" } }; ViewBag.MaritalStatus = maritals; ViewBag.ApartmentID = new SelectList(objects.GetApartments(), "ApartmentID", "Residence"); ViewBag.EmployeeID = new SelectList(objects.GetEmployees(), "EmployeeID", "Identification"); return(View()); }
// GET: Employees public ActionResult Index() { return(View(objects.GetEmployees())); }