show currect news list and user name in news detals

This commit is contained in:
2024-08-01 16:35:13 +03:30
parent 075e75e62d
commit d73b5dc266
5 changed files with 101 additions and 38 deletions

19
Models/newsModel.cs Normal file
View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace WebApplication1.Models
{
public class newsModel
{
public string DisplayName { get; set; }
public int NewsID { get; set; }
public string Title { get; set; }
public string Image { get; set; }
public string category { get; set; }
public string tag { get; set; }
public DateTime? date { get; set; }
public int? views { get; set; }
}
}