Exemple #1
0
        public IActionResult Update([FromBody] CrudViewModel <BSLDNAExt_LPVortexMixer> payload)
        {
            BSLDNAExt_LPVortexMixer bSLDNAExt_LPVortexMixer = payload.value;

            _context.BSLDNAExt_LPVortexMixer.Update(bSLDNAExt_LPVortexMixer);
            _context.SaveChanges();
            return(Ok(bSLDNAExt_LPVortexMixer));
        }
Exemple #2
0
        public IActionResult Remove([FromBody] CrudViewModel <BSLDNAExt_LPVortexMixer> payload)
        {
            BSLDNAExt_LPVortexMixer bSLDNAExt_LPVortexMixer = _context.BSLDNAExt_LPVortexMixer
                                                              .Where(x => x.LogId == (long)payload.key)
                                                              .FirstOrDefault();

            _context.BSLDNAExt_LPVortexMixer.Remove(bSLDNAExt_LPVortexMixer);
            _context.SaveChanges();
            return(Ok(bSLDNAExt_LPVortexMixer));
        }