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