public async Task <IActionResult> PutgetPeriodic([FromRoute] int id, [FromBody] getPeriodic getPeriodic)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != getPeriodic.id_getBudget)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <IActionResult> PostgetPeriodic([FromBody] getPeriodic getPeriodic)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _context.getPeriodic.Add(getPeriodic);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetgetPeriodic", new { id = getPeriodic.id_getBudget }, getPeriodic));
        }