public IActionResult Update([FromBody] CrudViewModel <RDLab_GelDocE7Imager> payload) { RDLab_GelDocE7Imager rDLab_GelDocE7Imager = payload.value; _context.RDLab_GelDocE7Imager.Update(rDLab_GelDocE7Imager); _context.SaveChanges(); return(Ok(rDLab_GelDocE7Imager)); }
public IActionResult Remove([FromBody] CrudViewModel <RDLab_GelDocE7Imager> payload) { RDLab_GelDocE7Imager rDLab_GelDocE7Imager = _context.RDLab_GelDocE7Imager .Where(x => x.LogId == (long)payload.key) .FirstOrDefault(); _context.RDLab_GelDocE7Imager.Remove(rDLab_GelDocE7Imager); _context.SaveChanges(); return(Ok(rDLab_GelDocE7Imager)); }