Пример #1
0
        public IActionResult Update([FromBody] CrudViewModel <MGISeqLab_T10OpticalPlatformPart> payload)
        {
            MGISeqLab_T10OpticalPlatformPart mGISeqLab_T10OpticalPlatformPart = payload.value;

            _context.MGISeqLab_T10OpticalPlatformPart.Update(mGISeqLab_T10OpticalPlatformPart);
            _context.SaveChanges();
            return(Ok(mGISeqLab_T10OpticalPlatformPart));
        }
Пример #2
0
        public IActionResult Remove([FromBody] CrudViewModel <MGISeqLab_T10OpticalPlatformPart> payload)
        {
            MGISeqLab_T10OpticalPlatformPart mGISeqLab_T10OpticalPlatformPart = _context.MGISeqLab_T10OpticalPlatformPart
                                                                                .Where(x => x.LogId == (long)payload.key)
                                                                                .FirstOrDefault();

            _context.MGISeqLab_T10OpticalPlatformPart.Remove(mGISeqLab_T10OpticalPlatformPart);
            _context.SaveChanges();
            return(Ok(mGISeqLab_T10OpticalPlatformPart));
        }