コード例 #1
0
        public JsonResult AddItem(NewClothingItemModel data)
        {
            var clothingStoreBL = new ClothingStoreBL();

            clothingStoreBL.AddItem(new ClothingItem()
            {
                Name               = data.Name,
                Price              = data.Price,
                BrandName          = data.BrandName,
                ClothingItemTypeId = data.ClothingItemTypeId,
            }, data.Ammount);

            return(new JsonResult()
            {
                Data = "Success",
                JsonRequestBehavior = JsonRequestBehavior.AllowGet,
            });
        }