/// <summary>
        /// Récupére l'entité désignée par l'id en paramétre.
        /// </summary>
        /// <param name="id">Id de l'entité</param>
        /// <returns>Message de retour avec l'entité</returns>
        public async Task <DTO.ConstraintSequence> GetById(long id)
        {
            ENT.ConstraintSequence constraintSequence = await ConstraintSequenceDomain.GetConstraintSequence(id);

            DTO.ConstraintSequence dtoConstraintSequence = null;
            if (constraintSequence != null)
            {
                dtoConstraintSequence = Mapper.Map <ENT.ConstraintSequence, DTO.ConstraintSequence>(constraintSequence);
            }

            return(dtoConstraintSequence);
        }
        /// <summary>
        /// Ajoute une nouvelle séquence de contrainte.
        /// </summary>
        /// <param name="constraintSequence">Nouvelle SequenceConstraint</param>
        /// <param name="constraintId">Id de la contrainte</param>
        /// <returns>Message de retour</returns>
        public async Task <DTO.ConstraintSequence> AddConstraintSequence(DTO.ConstraintSequence constraintSequence, long constraintId)
        {
            ENT.ConstraintSequence entConstraintSequence = Mapper.Map <DTO.ConstraintSequence, ENT.ConstraintSequence>(constraintSequence);

            return(Mapper.Map <ENT.ConstraintSequence, DTO.ConstraintSequence>(await ConstraintSequenceDomain.AddConstraintSequence(entConstraintSequence, constraintId)));
        }