Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model MyMVCApp.Models.Post
- @{
- ViewBag.Title = "Details";
- Layout = "~/Views/Shared/_Layout.cshtml";
- }
- <h2>Info</h2>
- <h3>@Model.Title</h3>
- <p>@Model.Created</p>
- <p>@Model.Description</p>
- <p>Author: @Model.Author</p>
- [Timestamp]
- public byte[] Created_at { get; set; }
- public string Created
- {
- get
- {
- return Convert.ToBase64String(Created_at);
- }
- }
- Сообщение об ошибке компилятора: CS1061: 'Post' does not contain a definition for 'Created' and no extension method 'Created' accepting a first argument of type 'Post' could be found (are you missing a using directive or an assembly reference?)
- Ошибка источника:
- Строка 9: <h3>@Model.Title</h3>
- Строка 10:
- Строка 11: <p>@Model.Created</p> //тут
- Строка 12: <p>@Model.Description</p>
- Строка 13: <p>Author: @Model.Author</p>
Add Comment
Please, Sign In to add comment