mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-22 09:17:47 +00:00
add automapper
This commit is contained in:
12
Models/FeedViewModel.cs
Normal file
12
Models/FeedViewModel.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace LiveGameFeed.Models
|
||||
{
|
||||
public class FeedViewModel : IEntityBase
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Description { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public int MatchId { get; set; }
|
||||
}
|
||||
}
|
||||
16
Models/MatchViewModel.cs
Normal file
16
Models/MatchViewModel.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace LiveGameFeed.Models
|
||||
{
|
||||
public class MatchViewModel : IEntityBase
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Host { get; set; }
|
||||
public string Guest { get; set; }
|
||||
public int HostScore { get; set; }
|
||||
public int GuestScore { get; set; }
|
||||
public DateTime MatchDate { get; set; }
|
||||
public string League { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user