public async Task <IActionResult> PutCategory(int id, CategoryRequestCommand userRequest)
        {
            var command = new CategoryUpdateCommand(userRequest, id);
            var result  = await _mediator.Send(command);

            return(result != null
                ? (IActionResult)Ok(result)
                : NotFound(string.Format(ModelConstants.PropertyNotFoundFromController, "კატეგორია")));
        }
        public async Task <IActionResult> PostCategory(CategoryRequestCommand command)
        {
            var result = await _mediator.Send(command);

            return(CreatedAtAction("GetCategory", new { id = result.Id }, result));
        }