// PUT api/EmployementStatusApi/5
        public async Task<IHttpActionResult> PutEmployementStatus(int id, EmployementStatus employementstatus)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != employementstatus.EmployementStatusdId)
            {
                return BadRequest();
            }

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public async Task<IHttpActionResult> PostEmployementStatus(EmployementStatus employementstatus)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.EmployementStatus.Add(employementstatus);
            await db.SaveChangesAsync();

            return CreatedAtRoute("DefaultApi", new { id = employementstatus.EmployementStatusdId }, employementstatus);
        }