Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }