vgquotes/Src/VideoGameQuotes.Api/GamingSystem.cs
tmont 14ca315213 * dto madness
* api madness
* browse page is beginning to not be empty
* NetVotes -> Score
2011-02-16 02:48:11 +00:00

33 lines
861 B
C#

using System;
using Portoa.Persistence;
namespace VideoGameQuotes.Api {
public class GamingSystem : Entity<GamingSystem, int>, IDtoMappable<SystemDto> {
public GamingSystem() {
Created = DateTime.UtcNow;
}
public virtual DateTime Created { get; set; }
public virtual DateTime ReleaseDate { get; set; }
public virtual string Name { get; set; }
public virtual string Abbreviation { get; set; }
public virtual SystemDto ToDto() {
return new SystemDto {
Id = Id,
Created = Created,
ReleaseDate = ReleaseDate,
Name = Name,
Abbreviation = Abbreviation
};
}
}
public class SystemDto {
public int Id { get; set; }
public DateTime Created { get; set; }
public DateTime ReleaseDate { get; set; }
public string Name { get; set; }
public string Abbreviation { get; set; }
}
}