Thursday, September 13, 2012

Current System Time Display in MVC


@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>Time</title>
</head>
<body>
    <div>
        <h1>Hello World Page</h1>
        <p>Hello World !</p>
        <p>The Time is @DateTime.Now</p>
    </div>
</body>
</html>



No comments:

Using Authorization with Swagger in ASP.NET Core

 Create Solution like below LoginModel.cs using System.ComponentModel.DataAnnotations; namespace UsingAuthorizationWithSwagger.Models {     ...