public ActionResult Create(StudentEntities.Entities.Product model) { try { // TODO: Add insert logic here var added = _productComponent.AddProduct(model); return(RedirectToAction(nameof(DisplayProducts), _productComponent.GetProducts())); } catch (Exception e) { return(View()); } }