/// <summary> /// Частичное представление - открытие окна создания /// </summary> public ActionResult Create() { var model = new ContainerSaveModel(); var containerStatuses = Enum.GetValues(typeof(ContainerStatus)) .Cast <ContainerStatus>() .Select(x => new SelectListItem { Value = x.ToString(), Text = x.GetDescription() }) .ToList(); var containerTypes = _containerTypeService.GetAllContainerTypeModels(null) .Select(x => new SelectListItem { Value = x.Id.ToString(), Text = x.Name }) .ToList(); var editWindowModel = new ContainerEditWindowModel <ContainerSaveModel>(model, containerStatuses, containerTypes); return(PartialView("Partial/Create", editWindowModel)); }
public HttpResponseMessage List(StoreLoadParams storeLoadParams) { var result = containerTypeService.GetAllContainerTypeModels(storeLoadParams).ToList(); return(Success(result)); }
// GET: Containers /// <summary> /// Получение списка всех элементов /// </summary> public ActionResult Index() { var model = _containerTypesService.GetAllContainerTypeModels(null); return(View(model)); }