public ActionResult GetSize() { PLItemDto pdt = new PLItemDto(); var Value = pdt.Sizes.ToList(); return(Json(Value)); }
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 })); }