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