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