Пример #1
0
        public ActionResult GetSize()
        {
            PLItemDto pdt   = new PLItemDto();
            var       Value = pdt.Sizes.ToList();

            return(Json(Value));
        }
Пример #2
0
        public JsonResult AddNewItem(PLItemDto dto)
        {
            var model = TempData.Peek("InsertModel") as LayoutDto;
            var List  = model.Items.ToList();

            List.Add(dto);
            model.Items = List;
            return(Json(new { IsSuccess = true }));
        }