public ActionResult Details(int Id) { try { var Mainboard = _LoadService.LoadById(Id); ViewBag.SelectedMainboard = Mainboard; ViewBag.TheSameTrademark = _LoadService.LoadByTrademark(Mainboard.TradeMark).Where(x => x.Id != Mainboard.Id).ToList(); } catch (Exception e) { } return(View()); }
public ActionResult Update(int Id) { ViewBag.SelectedMainboard = _LoadService.LoadById(Id); return(View()); }