Exemplo n.º 1
0
 public static GuiComment ConvertComment(Comment c)
 {
     GuiComment comment = new GuiComment()
     {
         UserId = c.UserId,
         Content = c.Content,
         Date = c.PostTime,
         ChannelId = c.ChannelId
     };
     using (RentItServiceClient proxy = new RentItServiceClient())
     {
         comment.UserName = proxy.GetUser(comment.UserId).Username;
     }
     return comment;
 }
Exemplo n.º 2
0
 public PartialViewResult Comment(GuiComment c)
 {
     return PartialView(c);
 }