public void UpdateView() { _uiContext.Send(state => { W****s.Clear(); foreach (var w***e in _dbContext.GetWhores()) { W****s.Add(new WhoreModel(w***e)); } foreach (var pimp in _dbContext.GetPimps()) { Pimps.Add(new PimpModel(pimp)); } }, null); }
public ActionResult Index() { ViewBag.W****s = _db.GetWhores(); return(View()); }