Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }