public IHttpActionResult PutTypeInfoCandidate(int id, TypeInfoCandidate typeInfoCandidate)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != typeInfoCandidate.TypeInfoCandidateID)
            {
                return BadRequest();
            }

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostTypeInfoCandidate(TypeInfoCandidate typeInfoCandidate)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.TypesInfoProspects.Add(typeInfoCandidate);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = typeInfoCandidate.TypeInfoCandidateID }, typeInfoCandidate);
        }
 public AttributeInfoCandidate(TypeInfoCandidate _typeInfoCandidate, string _description)
 {
     typeInfoCandidate = _typeInfoCandidate;
     description = _description;
     Candidate = new HashSet<Candidate>();
 }