Esempio n. 1
0
        public ActionResult DeliveryNoteAddView()
        {
            var categories = _noteCategoryService.SearchService.GetLeafCategories()
                             .Select(s => new SelectListItem {
                Text = s.Name, Value = s.Id.ToString()
            });

            ViewData["categories"] = categories;

            var customers = _customerSearchService.GetCustomers().Select(s => new SelectListItem {
                Text = s.Name, Value = s.Id.ToString()
            });

            ViewData["customers"] = customers;
            var note = _noteService.CreateEmptyDeliveryNote();

            return(View(note));
        }