Beispiel #1
0
 public ActionResult ViewMessage(int messageId)
 {
     IDAL DAL = new DBDataAL();
     string Name = User.Identity.Name;
     User user = DAL.GetUser(Name);
     Message message = DAL.GetMessagesFor(user).Where(m => m.Id == messageId).ToList().First();
     return View("Message", message);
 }
 private void PopulateMessages()
 {
     IDAL DAL = new DBDataAL();
     Messages = DAL.GetMessagesFor(Owner).ToList();
 }