public IActionResult Activate(long id, Guid version) { ActivateProductModel model = new ActivateProductModel() { Version = version }; try { ProductManagement pm = new ProductManagement(); pm.Activate(id, model); } catch (Exception ex) { return(new ContentResult() { Content = "An error has occurred: " + Environment.NewLine + ex.Message }); } return(RedirectToAction("Search", null)); }