// GET: Galeria public async Task <ActionResult> Index() { var model = await _clientHelper.GetGaleriasAsync(); foreach (var item in model) { var perfil = await _clientHelper.GetPerfilAsync(item.PerfilId); item.PerfilNome = perfil.Nome; } return(View(model)); }
// GET: Comentario public async Task <ActionResult> Index() { var model = await _clientHelper.GetComentariosAsync(); foreach (var item in model) { var perfil = await _clientHelper.GetPerfilAsync(item.PerfilId); var post = await _clientHelper.GetPostAsync(item.PostId); item.PerfilNome = perfil.Nome; item.PostNome = post.Titulo; } return(View(model)); }
// GET: Perfil/Details/5 public async Task <ActionResult> Details(int id) { var model = await _clientHelper.GetPerfilAsync(id); return(View(model)); }