public ActionResult Create(CreateConversationViewModel model)
 {
     try {
         // TODO: Add insert logic here
         if (ModelState.IsValid) {
             _repo.CreateConversation(model);
         }
     }
     catch
     {
         return View();
     }
     return RedirectToAction("Index", "Familys", new { userID = model.UserName, famName = _repo.GetFamilyNameById(model.FamId) });
 }
 //Create method
 public void CreateConversation(CreateConversationViewModel model)
 {
     Conversation newConvo = new Conversation {
         Topic = model.NewTopic,
         CreatedBy = GetMemberByUserName(model.UserName),
         WhichFam = GetFamilyById(model.FamId),
         IsEvent = model.IsEvent,
         Recurs = model.Recurs,
         ExpirationDate = model.ExpirationDate,
         CreatedDate = DateTime.Now,
         MessageList = new List<Message>(),
         VisibleTo = GetFamilyById(model.FamId).MemberList,
         AttenderList = new List<Member> { GetMemberByUserName(model.UserName) }
     };
     if (model.FirstMessage != null && model.FirstMessage != "") {
         Message newMessage = new Message { Text = model.FirstMessage, Contributor = newConvo.CreatedBy, Conversation = newConvo, TimeSubmitted = DateTime.Now };
         newConvo.MessageList.Add(newMessage);
         _db.Messages.Add(newMessage);
     }
     _db.Conversations.Add(newConvo);
     _db.SaveChanges();
 }