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