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