public async Task <IActionResult> PutBoletoTipoFuncion(int id, BoletoTipoFuncion boletoTipoFuncion)
        {
            if (id != boletoTipoFuncion.BoletoTipoId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <BoletoTipoFuncion> > PostBoletoTipoFuncion(BoletoTipoFuncion boletoTipoFuncion)
        {
            _context.BoletoTipoFuncion.Add(boletoTipoFuncion);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (BoletoTipoFuncionExists(boletoTipoFuncion.BoletoTipoId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetBoletoTipoFuncion", new { id = boletoTipoFuncion.BoletoTipoId }, boletoTipoFuncion));
        }