// PUT api/gsf_Travel_Award_Email_Templates/5
        public IHttpActionResult Putgsf_Travel_Award_Email_Templates(string id, gsf_Travel_Award_Email_Templates gsf_travel_award_email_templates)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != gsf_travel_award_email_templates.Name)
            {
                return BadRequest();
            }

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult Postgsf_Travel_Award_Email_Templates(gsf_Travel_Award_Email_Templates gsf_travel_award_email_templates)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.gsf_Travel_Award_Email_Templates.Add(gsf_travel_award_email_templates);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateException)
            {
                if (gsf_Travel_Award_Email_TemplatesExists(gsf_travel_award_email_templates.Name))
                {
                    return Conflict();
                }
                else
                {
                    throw;
                }
            }

            return CreatedAtRoute("DefaultApi", new { id = gsf_travel_award_email_templates.Name }, gsf_travel_award_email_templates);
        }