public async Task <IActionResult> Delete(int id)
        {
            try
            {
                var entity = _service.GetJobCategoryById(id);
                if (entity == null)
                {
                    return(NotFound());
                }

                if (await _service.DeleteJobCategoryAsync(entity))
                {
                    return(StatusCode((int)HttpStatusCode.OK, "Job category deleted successfully !!!"));
                }
                return(StatusCode((int)HttpStatusCode.OK, "Job category not deleted !!!"));
            }
            catch (Exception ex) { return(StatusCode((int)HttpStatusCode.InternalServerError, ex.Message)); }
        }