add automapper

This commit is contained in:
chsakell
2016-09-30 10:36:22 +03:00
parent a0cc12f3fb
commit d0690695b6
8 changed files with 71 additions and 5 deletions

12
Models/FeedViewModel.cs Normal file
View 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
View 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; }
}
}