public IActionResult DeleteGRNItem(long id) { GrnItem grn = grnItem_repo.Find(id); if (grn == null) { return(NotFound()); } grnItem_repo.Delete(grn); return(Ok()); }
public IActionResult UpdateGRNItem([FromBody] GrnItem model) { grnItem_repo.Update(model); return(new OkObjectResult(new { GRNItemID = model.GRNId })); }