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