public HttpResponseMessage Get(long id)
        {
            var result = containerService.GetContainerModel(id);

            if (result == null)
            {
                return(Failure("Контейнер с указанным идентификатором не найден"));
            }

            return(Success(result));
        }
        /// <summary>
        /// Частичное представление - открытие окна редактирования
        /// </summary>
        public ActionResult Edit(long id)
        {
            var model = _containertService.GetContainerModel(id);

            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 <ContainerGetModel>(model, containerStatuses, containerTypes);

            return(PartialView("Partial/Edit", editWindowModel));
        }