public long MigrationNumber(string encodedBranch, MigrationType type)
        {
            var branch = HttpUtility.UrlDecode(encodedBranch);

            try
            {
                return(_provider.ReadMigrationNumber(branch, type));
            }
            catch (Exception e)
            {
                Log.Error(e);
                throw HttpExceptionHelper.ServerError(e.Message);
            }
        }
        public string MigrationNumber(string encodedBranch, MigrationType type, long number)
        {
            var branch = HttpUtility.UrlDecode(encodedBranch);

            try
            {
                _provider.UpdateMigrationNumber(branch, type, number);
            }
            catch (Exception e)
            {
                Log.Error(e);
                throw HttpExceptionHelper.ServerError(e.Message);
            }
            return("ok");
        }