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