public IActionResult EditJobTitle([FromBody] CreateEditJobTitleViewModel model) { if (model == null) { return(BadRequest(" Job Title is null.")); } if (!ModelState.IsValid) { return(BadRequest()); } var decryptedID = Convert.ToInt32(EncryptionHelper.DecryptUrlParam(model.ID)); model.ID = decryptedID.ToString(); var jobTitle = _organizationUnitProvider.GetJobTitleDetail(Convert.ToInt32(model.ID)); var gradeMapper = _mapper.Map(model, jobTitle); _organizationUnitProvider.EditJobTitle(gradeMapper); return(Ok()); }