public CategoryInput getModel(IRepository repo)
        {
            var model = new CategoryInput();

            Mapper.CreateMap<CategoryInputView, CategoryInput>();
            Mapper.Map<CategoryInputView, CategoryInput>(this, model);

            model.category = repo.getCategory(this.categoryId);

            return model;
        }
        public Category getModel(IRepository repo)
        {
            var model = new Category()
            {
                description = this.description,
                id = this.id,
                name = this.name,
                salary = this.salary,
                parent = this.parentId == null ? null : repo.getCategory((int)this.parentId),
                order = this.order,
                url = this.url
            };

            return model;
        }