Example #1
0
        public IActionResult Update([FromBody] CrudViewModel <ILLUMINALibConst_Others> payload)
        {
            ILLUMINALibConst_Others iLLUMINALibConst_Others = payload.value;

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

            _context.ILLUMINALibConst_Others.Remove(iLLUMINALibConst_Others);
            _context.SaveChanges();
            return(Ok(iLLUMINALibConst_Others));
        }