Пример #1
0
        public async Task <ResponseModel> CallBackToSite(RedirectBack redirect)
        {
            response.Success = false;
            try
            {
                response = await CommonGitService.GitCallback(redirect);

                if (response.Data != null)
                {
                    response.Success     = true;
                    response.Status_Code = 200;
                }
            }
            catch (Exception ex) { response.Message = ex.Message; }
            return(response);
        }
Пример #2
0
 public ResponseModel AuthoriseGit(string access_token)
 {
     response.Success = false;
     try
     {
         var userInfoStr = CommonGitService.GitAuthenticatePage();
         if (!string.IsNullOrEmpty(userInfoStr))
         {
             response.Data        = userInfoStr;
             response.Success     = true;
             response.Status_Code = 200;
         }
     }
     catch (Exception ex)
     {
         response.Message = ex.Message;
     }
     return(response);
 }