public async Task <IActionResult> PutAdvanceOrReimburse(int id, AdvanceOrReimburse advanceOrReimburse)
        {
            if (id != advanceOrReimburse.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <AdvanceOrReimburse> > PostAdvanceOrReimburse(AdvanceOrReimburse advanceOrReimburse)
        {
            _context.AdvanceOrReimburseTypes.Add(advanceOrReimburse);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetAdvanceOrReimburse", new { id = advanceOrReimburse.Id }, advanceOrReimburse));
        }