public ActionResult EditAd(int adId) { List <int> category = new List <int>(); foreach (var item in bridge.GetCategories()) { category.Add(item.Id); } ViewBag.Categories = category; List <string> type = new List <string>(); type.Add("Товар"); type.Add("Услуга"); ViewBag.Type = type; List <string> state = new List <string>(); state.Add("Новый"); state.Add("БУ"); ViewBag.State = state; var ad = bridge.GetAdById(adId); return(View(ad)); }