public ActionResult findAll()
        {
            try
            {
                GetAllAlgorithmsModelView allAlgorithms = new core.application.AlgorithmController().getAllAlgorithms();

                return(Ok(allAlgorithms));
            }
            catch (ResourceNotFoundException ex)
            {
                return(NotFound(new SimpleJSONMessageService(ex.Message)));
            }
        }
        public ActionResult findAlgorithm(int id)
        {
            try
            {
                GetAlgorithmModelView algorithmModelView = new core.application.AlgorithmController().getAlgorithm((RestrictionAlgorithm)id);

                return(Ok(algorithmModelView));
            }
            catch (ArgumentOutOfRangeException ex)
            {
                //this exception should only occur if the factory does not recognize an enumerate element with the given id value
                return(NotFound(new SimpleJSONMessageService(ex.Message)));
            }
        }