public ActionResult Index()
        {
            var repo   = new MembersRepository(Properties.Settings.Default.ConStr);
            var member = repo.GetByEmail(User.Identity.Name);

            return(View(new IndexViewModel {
                MemberId = member.Id
            }));
        }
        public void SetDoing(int endeavorId)
        {
            var memberRepo   = new MembersRepository(Properties.Settings.Default.ConStr);
            var member       = memberRepo.GetByEmail(Context.User.Identity.Name);
            var endeavorRepo = new EndeavorsRepository(Properties.Settings.Default.ConStr);

            endeavorRepo.SetDoing(endeavorId, member.Id);
            GetAndSendEndeavors1();
        }