예제 #1
0
        public IActionResult Update([FromBody] CrudViewModel <RDLab_ThermalCycler> payload)
        {
            RDLab_ThermalCycler rDLab_ThermalCycler = payload.value;

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

            _context.RDLab_ThermalCycler.Remove(rDLab_ThermalCycler);
            _context.SaveChanges();
            return(Ok(rDLab_ThermalCycler));
        }