public ActionResult ReportBug(string Title) { JiraAuth jira = new JiraAuth(); BugModel model = new BugModel(project, jira); return View(model); }
public ActionResult ReportBug(BugModel model) { JiraAuth jira = new JiraAuth(); Issue issue = jira.CreateIssue("Agile Scrum"); issue.Description = model.Description; issue.Summary = model.Summary; issue.Reporter = model.Reporter; issue.SaveChanges(); return RedirectToAction("Project"); }