Esempio 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;
 }
Esempio n. 2
0
 public PartialViewResult Comment(GuiComment c)
 {
     return PartialView(c);
 }