public IHttpActionResult PostSkillsTalent(SkillsTalent skillsTalent)
        {
            db.SkillsTalents.Add(skillsTalent);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = skillsTalent.skillandtalentID }, skillsTalent));
        }
        public IHttpActionResult PutSkillsTalent(int id, SkillsTalent skillsTalent)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != skillsTalent.skillandtalentID)
            {
                return(BadRequest());
            }

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

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

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult DeleteSkillsTalent(int id)
        {
            SkillsTalent skillsTalent = db.SkillsTalents.Find(id);

            if (skillsTalent == null)
            {
                return(NotFound());
            }

            db.SkillsTalents.Remove(skillsTalent);
            db.SaveChanges();

            return(Ok(skillsTalent));
        }