Ejemplo n.º 1
0
        public IActionResult Update([FromBody] CrudViewModel <RDLab_CompactDrybathS> payload)
        {
            RDLab_CompactDrybathS rDLab_CompactDrybathS = payload.value;

            _context.RDLab_CompactDrybathS.Update(rDLab_CompactDrybathS);
            _context.SaveChanges();
            return(Ok(rDLab_CompactDrybathS));
        }
Ejemplo n.º 2
0
        public IActionResult Remove([FromBody] CrudViewModel <RDLab_CompactDrybathS> payload)
        {
            RDLab_CompactDrybathS rDLab_CompactDrybathS = _context.RDLab_CompactDrybathS
                                                          .Where(x => x.LogId == (long)payload.key)
                                                          .FirstOrDefault();

            _context.RDLab_CompactDrybathS.Remove(rDLab_CompactDrybathS);
            _context.SaveChanges();
            return(Ok(rDLab_CompactDrybathS));
        }