public ActionResult EditTrade(long?id) { if (id == null) { return(RedirectToAction("Error404", "Home")); } var model = new AddTradeViewModel() { TradeGroups = blTradeGroup.Select().ToList(), Trade = blTrade.Find(Convert.ToInt64(id)) }; return(View(model)); }