public Messages(UserBaseContract user, int?selectedMessageId, string receiverName, UserInboxType inbox) { User = user; ReceiverName = receiverName ?? string.Empty; SelectedMessageId = selectedMessageId; Inbox = inbox; }
public static HtmlString ProfileIcon(this HtmlHelper htmlHelper, UserBaseContract user, int size = 80) { if (user != null && !string.IsNullOrEmpty(user.Email)) { return(Gravatar.GetHtml(user.Email, size)); } else { return(new HtmlString(string.Empty)); } }
public Messages(UserBaseContract user, int?selectedMessageId, string receiverName) { User = user; ReceiverName = receiverName ?? string.Empty; SelectedMessageId = selectedMessageId; }