public async Task <IActionResult> DeleteCategory(int id)
        {
            if (ModelState.IsValid)
            {
                var model = new CategoryModel();
                try
                {
                    var provider = await model.DeleteAsync(id);

                    model.Response = new ResponseModel($"Category {provider} successfully deleted.", ResponseType.Success);
                    return(RedirectToAction("Index"));
                }
                catch (Exception ex)
                {
                    model.Response = new ResponseModel("Category deletion failed.", ResponseType.Failure);
                    _logger.LogInformation(ex.Message);
                }
            }
            return(RedirectToAction("index"));
        }