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