public Response Handle(Request request)
        {
            var            typedRequest  = (CreateIssueRequest)request;
            IIssuesService issuesService = ObjectFactory.GetInstance <IIssuesService>();
            var            issueResult   = issuesService.Create(typedRequest.User, typedRequest.Password, typedRequest.Repo, typedRequest.CreateIssue);

            return(new IssueResponse(issueResult));
        }
Beispiel #2
0
        public Issue CreateIssue(string user, string password, string repo, IssueCreate createIssue)
        {
            IIssuesService issuesService = ObjectFactory.GetInstance <IIssuesService>();

            return(issuesService.Create(user, password, repo, createIssue));
        }
Beispiel #3
0
 public async Task <IActionResult> Create([FromBody] NewIssueModel model) =>
 ModelResult(await _issuesService.Create(model, CurrentUserId));