public IActionResult Update([FromBody] CrudViewModel <ACR_PumpOnGround> payload) { ACR_PumpOnGround ACR_PumpOnGround = payload.value; _context.ACR_PumpOnGround.Update(ACR_PumpOnGround); _context.SaveChanges(); return(Ok(ACR_PumpOnGround)); }
public IActionResult Remove([FromBody] CrudViewModel <ACR_PumpOnGround> payload) { ACR_PumpOnGround ACR_PumpOnGround = _context.ACR_PumpOnGround .Where(x => x.LogId == (long)payload.key) .FirstOrDefault(); _context.ACR_PumpOnGround.Remove(ACR_PumpOnGround); _context.SaveChanges(); return(Ok(ACR_PumpOnGround)); }