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