Ejemplo n.º 1
0
        public async Task <bool> EditReceive(EditReceiveParam data)
        {
            var receiveModel = _repoReceive.FindSingle(x => x.ID.Trim() == data.ID.Trim());

            receiveModel.ProductID = data.ProductID;
            receiveModel.Qty       = data.Qty;
            try {
                return(await _repoReceive.SaveAll());
            } catch (Exception) {
                return(false);
            }
        }
Ejemplo n.º 2
0
 public async Task<IActionResult> EditReceive([FromBody]EditReceiveParam data) {
     var result = await _serviceManager.EditReceive(data);
     return Ok(result);
 }