Advertisement
Danny_Berova

УсерUserDetailsView

Jun 3rd, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1.  public class UserDetailsView : IView
  2.     {
  3.         private readonly Model model;
  4.  
  5.         public UserDetailsView(Model model)
  6.         {
  7.             this.model = model;
  8.         }
  9.  
  10.         public string View()
  11.         {
  12.             return
  13.                     "<body>" +
  14.                     $"   Hello, {this.model["name"]}!" +
  15.                     "</br>" +
  16.                     "</br>" +
  17.                     $"<a href=\"http://127.0.0.1:8230\"> GoToHomePage</a>" +
  18.             "</body>";
  19.         }
  20.  
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement