public async Task <IActionResult> Edit(EditJobCategoryViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            var category = _mapper.Map <JobCategory>(model);
            var result   = await _jobCategoryService.Edit(category);

            if (result)
            {
                return(RedirectToAction(nameof(Index)));
            }

            return(View("NotFound"));
        }