public IHttpActionResult Get(int id, int?DefinitionSourceId = null, int?ControlPriorityClassificationId = null)
        {
            #region Preconditions

            if (controlPriorityRepository == null)
            {
                throw new InvalidOperationException();
            }

            if (id <= 0)
            {
                throw new ArgumentOutOfRangeException();
            }

            #endregion

            try
            {
                var controlPriority = controlPriorityRepository.GetItem(id);

                var dtoControlPriority = ControlPriorityMapper.TranslateModelControlPriorityToDTOControlPriority(controlPriority);

                return(Ok(dtoControlPriority));
            }
            catch (Exception)
            {
                return(InternalServerError());
            }
        }
        public IHttpActionResult Get()
        {
            #region Preconditions

            if (controlPriorityRepository == null)
            {
                throw new InvalidOperationException();
            }

            #endregion

            try
            {
                var controlPriorities = controlPriorityRepository.GetItems();

                var dtoControlPriorities = controlPriorities.Select(cs => ControlPriorityMapper.TranslateModelControlPriorityToDTOControlPriority(cs));

                return(Ok(dtoControlPriorities));
            }
            catch (Exception)
            {
                return(InternalServerError());
            }
        }