public IEnumerable <CategoryInputView> Get()
        {
            var models = repo.getAllCategoryInputs();
            var views  = CategoryInputView.getViews(models);

            return(views);
        }
        public HttpResponseMessage CategoryInputs(int id)
        {
            var model = repo.getCategory(id);

            if (model == null)
            {
                return(Request.CreateResponse(HttpStatusCode.NotFound));
            }
            else
            {
                var categoryInputs = model.categoryInputs;
                var views          = CategoryInputView.getViews(categoryInputs);
                return(Request.CreateResponse(HttpStatusCode.OK, views));
            }
        }