Пример #1
0
 public ActionResult Index()
 {
     return(View(Mapper.Map <IEnumerable <AmigoVM> >(_business.RecuperarDapper()).Where(x => !x.Email.ToUpper().Equals(User.Identity.Name.ToUpper()))));
 }
 private void PreencherCombo()
 {
     ViewBag.ComboAmigo = Mapper.Map <IEnumerable <AmigoVM> >(_businessAmigo.RecuperarDapper());
     ViewBag.ComboJogos = Mapper.Map <IEnumerable <JogoVM> >(_businessJogo.RecuperarDisponiveis());
 }