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