public CategoryEmptyResponse Empty([FromBody] CategoryEditableRequest request)
        {
            CategoryEmptyResponse response = new CategoryEmptyResponse();

            response.Item = categoryConvertor.toEmptyVo();

            response.Status = 1;
            return(response);
        }
        public CategoryEditableResponse Editable([FromBody] CategoryEditableRequest request)
        {
            CategoryEditableResponse response = new CategoryEditableResponse();

            if (request.Id <= 0)
            {
                response.Status = -1;
                return(response);
            }

            CategoryEntity entity = categoryRepository.GetById(request.Id);

            if (entity == null)
            {
                response.Status = 404;
                return(response);
            }

            response.Item = categoryConvertor.toMoreVo(entity);

            response.Status = 1;
            return(response);
        }