public EngineVersion UpdateEngineVersion(string version) { OlderVersionDal oldVersionDal = new OlderVersionDal(); Version oldVersionToSave = new Version(); if (Version.TryParse(version, out oldVersionToSave) && (version.IndexOf('.') != version.LastIndexOf('.'))) { return(oldVersionDal.SetEngineOldVersion(version)); } return(default(EngineVersion)); }