Ejemplo n.º 1
0
 public static HaikuPublishedDto MapHaikuEntityToHaikuPublishedDto(HaikuEntity haiku)
 {
     return new HaikuPublishedDto()
     {
         Id = haiku.Id,
         DatePublished = haiku.DatePublished
     };
 }
Ejemplo n.º 2
0
 public static HaikuPublishedDto MapHaikuEntityToHaikuPublishedDto(HaikuEntity haiku)
 {
     return(new HaikuPublishedDto()
     {
         Id = haiku.Id,
         DatePublished = haiku.DatePublished
     });
 }
Ejemplo n.º 3
0
 public static HaikuGetDto MapHaikuEntityToHaikuGetDto(HaikuEntity haiku)
 {
     return(new HaikuGetDto()
     {
         Id = haiku.Id,
         Text = haiku.Text,
         Rating = haiku.Rating,
         Author = haiku.User.Nickname
     });
 }
Ejemplo n.º 4
0
 public static HaikuGetDto MapHaikuEntityToHaikuGetDto(HaikuEntity haiku)
 {
     return new HaikuGetDto()
     {
         Id = haiku.Id,
         Text = haiku.Text,
         Rating = haiku.Rating,
         Author = haiku.User.Nickname
     };
 }