public async Task <IActionResult> PutLBAcces(int id, LBAcces lBAcces)
        {
            if (id != lBAcces.idlb)
            {
                return(BadRequest());
            }

            _context.Entry(lBAcces).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!LBAccesExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <ActionResult <LBAcces> > PostLBAcces(LBAcces lBAcces)
        {
            //byte[] data = System.Text.Encoding.ASCII.GetBytes(lBAcces.passWd);
            //data = new System.Security.Cryptography.SHA256Managed().ComputeHash(data);
            //String hash = System.Text.Encoding.ASCII.GetString(data);
            //lBAcces.passWd = hash;

            lBAcces.passWd = Encriptacion.Encrypt(lBAcces.passWd);

            _context.LBAcces.Add(lBAcces);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetLBAcces", new { id = lBAcces.idlb }, lBAcces));
        }