コード例 #1
0
        public IActionResult DeleteGRNItem(long id)
        {
            GrnItem grn = grnItem_repo.Find(id);

            if (grn == null)
            {
                return(NotFound());
            }

            grnItem_repo.Delete(grn);
            return(Ok());
        }
コード例 #2
0
 public IActionResult UpdateGRNItem([FromBody] GrnItem model)
 {
     grnItem_repo.Update(model);
     return(new OkObjectResult(new { GRNItemID = model.GRNId }));
 }