// PUT api/Default1/5
        public IHttpActionResult Putvw_Active_Travel_Grant_Students(int id, vw_Active_Travel_Grant_Students vw_active_travel_grant_students)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != vw_active_travel_grant_students.Recipient_ID)
            {
                return BadRequest();
            }

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

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!vw_Active_Travel_Grant_StudentsExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult Postvw_Active_Travel_Grant_Students(vw_Active_Travel_Grant_Students vw_active_travel_grant_students)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.vw_Active_Travel_Grant_Students.Add(vw_active_travel_grant_students);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateException)
            {
                if (vw_Active_Travel_Grant_StudentsExists(vw_active_travel_grant_students.Recipient_ID))
                {
                    return Conflict();
                }
                else
                {
                    throw;
                }
            }

            return CreatedAtRoute("DefaultApi", new { id = vw_active_travel_grant_students.Recipient_ID }, vw_active_travel_grant_students);
        }