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