public async Task <string> GetChangeFromSourceControlAsync(int changeId, int codeId, string path) { path = path.Replace(Config.UrlDelimeter, Helper.RootUrl); await GetCodeContentAsync(codeId, path); var change = SourceControl.GeChangeById(changeId, path.Remove(path.LastIndexOf("/", StringComparison.Ordinal) + 1)); if (change == null) { throw new KhodkarInvalidException(LanguageManager.ToAsErrorMessage(ExceptionKey.ChangeNotFound)); } if (change.Code == null) { throw new KhodkarInvalidException(LanguageManager.ToAsErrorMessage(ExceptionKey.ChangeHasNoCode)); } return(change.Code); }