public IActionResult Update([FromBody] CrudViewModel <BSLSamMgmt_BradyPrinteri5100> payload)
        {
            BSLSamMgmt_BradyPrinteri5100 bSLSamMgmt_BradyPrinteri5100 = payload.value;

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

            _context.BSLSamMgmt_BradyPrinteri5100.Remove(bSLSamMgmt_BradyPrinteri5100);
            _context.SaveChanges();
            return(Ok(bSLSamMgmt_BradyPrinteri5100));
        }