public JsonResult CheckProjectNameExists(string ProjectName) { try { var isProjectNameExists = false; if (ProjectName != null) { isProjectNameExists = _IProject.CheckProjectNameExists(ProjectName); } if (isProjectNameExists) { return(Json(data: true)); } else { return(Json(data: false)); } } catch (Exception) { throw; } }