public void UpdateTypeContract(TypeContracts typeContract)
        {
            HumanResourcesDBEntities db = new HumanResourcesDBEntities();

            db.TypeContracts.FirstOrDefault(x => x.ID == typeContract.ID).Value = typeContract.Value;
            db.SaveChanges();
        }
        public void AddTypeContract(TypeContracts typeContract)
        {
            HumanResourcesDBEntities db = new HumanResourcesDBEntities();

            db.TypeContracts.Add(typeContract);
            db.SaveChanges();
        }