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