Exemplo n.º 1
0
 // 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());
 }
Exemplo n.º 2
0
 // 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());
 }
Exemplo n.º 3
0
        public ActionResult BusinessArea()
        {
            var businessArea = _businessAreaService.GetAll();

            return(PartialView(businessArea));
        }
Exemplo n.º 4
0
        // GET: BusinessAreas
        public ActionResult Index()
        {
            var businessAreas = Mapper.Map <IEnumerable <BusinessAreaViewModel> >(businessAreaService.GetAll());

            return(View(businessAreas));
        }