public ActionResult Create(string IssueCategoryName)
        {
            if (!ModelState.IsValid)
                return View();

            try
            {
                IssueCategory issueCat = new IssueCategory();
                issueCat.IssueCategoryName = IssueCategoryName;
                _dataModel.AddToIssueCategories(issueCat);
                _dataModel.SaveChanges();

                return RedirectToAction("Index", "Issue");
            }
            catch
            {
                return RedirectToAction("Index", "Issue");
            }
        }
 /// <summary>
 /// Create a new IssueCategory object.
 /// </summary>
 /// <param name="issueCategoryName">Initial value of the IssueCategoryName property.</param>
 public static IssueCategory CreateIssueCategory(global::System.String issueCategoryName)
 {
     IssueCategory issueCategory = new IssueCategory();
     issueCategory.IssueCategoryName = issueCategoryName;
     return issueCategory;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the IssueCategories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToIssueCategories(IssueCategory issueCategory)
 {
     base.AddObject("IssueCategories", issueCategory);
 }