Example #1
0
        public HttpResponseMessage Get(long id)
        {
            var result = containerTypeService.GetContainerTypeModel(id);

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

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

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