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