public async Task <IActionResult> CreateProgram(DAL.Entities.Program program)
        {
            db.Programs.Add(program);
            await db.SaveChangesAsync();

            return(CreatedAtAction("GetProgram", new { id = program.ProgramId }, program));
        }
        public async Task <IActionResult> UpdateProgram(int?id, DAL.Entities.Program program)
        {
            if (id != program.ProgramId)
            {
                return(BadRequest());
            }

            db.Entry(program).State = EntityState.Modified;

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

            return(NoContent());
        }