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

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

            _context.BSLSamMgmt_TheromoMixer.Remove(bSLSamMgmt_TheromoMixer);
            _context.SaveChanges();
            return(Ok(bSLSamMgmt_TheromoMixer));
        }