예제 #1
0
        public async Task <IHttpActionResult> Add(Entities.Item Item)
        {
            Item.Code = 0; // enforce NEW item

            var bll = new BLL.Items();

            return(Ok <int>(await bll.SaveAsync(Item)));
        }
예제 #2
0
        public async Task <IHttpActionResult> Update(Entities.Item Item)
        {
            var bll = new BLL.Items();

            return(Ok <int>(await bll.SaveAsync(Item)));
        }