// GET: Suppliers/Create public ActionResult Create() { ViewBag.BusinessAreaId = new SelectList(businessAreaService.GetAll(), "Id", "Name"); ViewBag.CityId = new SelectList(cityService.GetAll(), "Id", "Name"); ViewBag.CompanyId = new SelectList(companyService.GetAll(), "Id", "Name"); ViewBag.CountryId = new SelectList(countryService.GetAll(), "Id", "Name"); ViewBag.SectorId = new SelectList(sectorService.GetAll(), "Id", "Name"); return(View()); }
// GET: Orders/Create public ActionResult Create() { ViewBag.BusinessAreaId = new SelectList(businessAreaService.GetAll(), "Id", "Name"); ViewBag.CompanyId = new SelectList(companyService.GetAll(), "Id", "Name"); ViewBag.FacilityId = new SelectList(facilityService.GetAll(), "Id", "Name"); ViewBag.OrderTypeId = new SelectList(orderTypeService.GetAll(), "Id", "Name"); ViewBag.PurchasingDepartmentId = new SelectList(purchasingDepartmentService.GetAll(), "Id", "Name"); ViewBag.SupplierId = new SelectList(supplierService.GetAll(), "Id", "Name"); return(View()); }
public ActionResult BusinessArea() { var businessArea = _businessAreaService.GetAll(); return(PartialView(businessArea)); }
// GET: BusinessAreas public ActionResult Index() { var businessAreas = Mapper.Map <IEnumerable <BusinessAreaViewModel> >(businessAreaService.GetAll()); return(View(businessAreas)); }