示例#1
0
        public void AddInventoryTaking(InventoryTaking inventory)
        {
            var _storevisit = Table.FirstOrDefault(o => o.StoreVisitId == inventory.StoreVisitId);

            _storevisit.InventoryTakings.Add(inventory);
            Update(_storevisit);
        }
示例#2
0
        public IActionResult AddInventoryTaking([FromBody] InventoryTaking inventory)
        {
            Repo.AddInventoryTaking(inventory);

            return(Ok(new { InventoryTakingId = inventory.InventoryTakingId }));
        }