public ActionResult Create(TechCategory techCategory) { try { BusinessLogicHandler myHandler = new BusinessLogicHandler(); myHandler.AddTechnologyType(techCategory); return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult ViewTechCategory(TechCategory tech) { myHandler = new BusinessLogicHandler(); if (ModelState.IsValid) { myHandler.AddTechnologyType(tech); } return Json(new { success = true }); }