Created
January 29, 2017 23:40
-
-
Save renatogroffe/859540684d5d14111f0b46409b74db14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
namespace TesteViewComponent.ViewComponents | |
{ | |
public class ListaViewComponent : ViewComponent | |
{ | |
public async Task<IViewComponentResult> InvokeAsync( | |
string sequencia) | |
{ | |
var valores = await Task.FromResult( | |
sequencia.Split(new char[] { '|' })); | |
return View(valores); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment