using System;
using Nancy;

namespace MicroServicesHelloWorld{


public class CurrentDateTimeModule: NancyModule
{
    public CurrentDateTimeModule()
    {
        Get("/", _ => DateTime.UtcNow);
    }
}
}
using System;
using Nancy;

namespace MicroServicesHelloWorld{


public class CurrentDateTimeModule: NancyModule
{
    public CurrentDateTimeModule()
    {
        Get("/", _ => {
            
            var response = (Response)("\""+DateTime.UtcNow.ToString()+"\"");

        response.ContentType = "application/json";
        

        return response;


            });
    }
}
}
Test to have json overall anser
Test to have json overall anser
