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