public HttpResponseMessage Post(CategoryInputView view)
        {
            var model = view.getModel(repo);

            model = repo.createCategoryInput(model);
            view  = new CategoryInputView(model);

            var    response = Request.CreateResponse <CategoryInputView>(HttpStatusCode.Created, view);
            string uri      = Url.Route(null, new { id = view.id });

            response.Headers.Location = new Uri(Request.RequestUri, uri);
            return(response);
        }
        public void Put(CategoryInputView view)
        {
            var model = view.getModel(repo);

            repo.update(model);
        }