Last active
January 2, 2018 23:34
-
-
Save jamesmontemagno/e48faf5a8c56f80a553c57321f872076 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.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
using MyFirstOouiApp.Models; | |
using MyFirstOouiApp.Pages; | |
using Ooui.AspNetCore; | |
using Xamarin.Forms; | |
namespace MyFirstOouiApp.Controllers | |
{ | |
public class HomeController : Controller | |
{ | |
public IActionResult Index() | |
{ | |
var page = new MyPage(); | |
var element = page.GetOouiElement(); | |
return new ElementResult(element, "Hello from XAML!"); | |
} | |
public IActionResult Error() | |
{ | |
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment