public async Task <IActionResult> Patch(int id, [FromBody] JobCategory model)
        {
            try
            {
                var entity = _service.GetJobCategoryById(id);
                if (entity == null)
                {
                    return(NotFound());
                }

                if (model.ValidationErrors().Any())
                {
                    return(StatusCode((int)HttpStatusCode.PreconditionFailed, string.Join(" | ", model.ValidationErrors())));
                }

                //Update Job category
                entity.Name        = model.Name;
                entity.Description = model.Description;
                entity.UpdatedOn   = DateTime.Now;

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