public JsonResult AddCategory(CategoryEditDto categoryEdit)
        {
            bool   status = false;
            string msg    = "";

            CheckModelState();

            try
            {
                _categoryAppService.CreateCategoryAsync(categoryEdit);
                status = true;
            }
            catch (Exception e)
            {
                msg    = "-1";
                status = false;
            }
            return(Json(new { success = status }));
        }
        public async Task <ActionResult <CategoryDTO> > PostCategory(CategoryDTO category)
        {
            await categoryAppService.CreateCategoryAsync(category);

            return(Ok());
        }
 public async Task Create(CreateUpdateCategoryInput input)
 {
     await _categoryService.CreateCategoryAsync(input);
 }