public MessageFormViewModel(Message Message) { channelRepository = new ChannelRepository(); this.Message = Message; ProfileImage = getGravatar(channelRepository.userDB.getUser(Message.UserId).aspnet_Membership.Email); Username = channelRepository.userDB.getUser(Message.UserId).UserName; Attachment = null; }
public MessageSendDM(Message Message) { channelRepository = new ChannelRepository(); this.Message = Message; if (Message.Receiver.HasValue) { Receivers = new SelectList(channelRepository.userDB.getAllUsers(), "UserID", "UserName", (Guid) Message.Receiver); } else { Receivers = new SelectList(channelRepository.userDB.getAllUsers(), "UserID", "UserName"); } }
public DMController() { chRep = new ChannelRepository(); psRep = new PswinRepository(); }
public UserRepository(ChannelRepository owner, ChannelDataClassesDataContext db) { this.owner = owner; this.db = db; }
public ChannelController() { chRep = new ChannelRepository(); }
public PswinRepository() { chRep = new ChannelRepository(); }