Skip to content

Instantly share code, notes, and snippets.

Created January 24, 2016 10:03
What would you like to do?
using System;
using Microsoft.AspNet.Mvc;
namespace GettingStarted_ASPNetCore1_Angular2.Controllers
public class HelloController : Controller
public IActionResult Get(string name)
var time = DateTime.UtcNow.ToString("hh:mm:ss");
var response = new
message = $"{time} - Hello {name}, server-side speaking!"
return new ObjectResult(response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment