Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }