コード例 #1
0
        public Task <BaseResult> AddItem(List <ItemModel> itemModels)
        {
            var x = itemModels.Where(ModelCheck.Check).ToList();
            var r = new RequestItemsModel
            {
                Action    = "Add",
                Parameter = string.Empty,
                Items     = x
            };

            try
            {
                return(_itemDal.Post(r));
            }
            catch (Exception e)
            {
                return(Task.Run <BaseResult>(() => ResultFactory.CreateItemsResult(e)));
            }
        }