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