public BaseResponse Auth(JiraData.JiraAuth user)
 {
     try
     {
         JiraServices.Instance.JiraAuth(user);
         return(new SuccessResponse(true));
     }
     catch (Exception ex)
     {
         return(new ErrorResponse(ex));
     }
 }
        public void JiraAuth(JiraData.JiraAuth user)
        {
            if (user == null)
            {
                throw new Exception("Login failled: no user provided");
            }
            try
            {
                _jira = Jira.CreateRestClient(user.url, user.username, user.password);

                var check = _jira.Users.GetUserAsync(user.username).Result;

                JiraData.Instance.Auth.set(user);
            }
            catch (Exception ex)
            {
                throw new Exception("Login failled: " + ex.Message);
            }
        }