Exemple #1
0
        // GET: TeeTime/Create
        public IActionResult Create()
        {
            var model = new TeeTimeCreateViewModel();

            model.Courses = _courseData.getSelectList();
            if (_signInManager.IsSignedIn(User))
            {
                model.Member       = _memberData.getByEmailAddr(_userManager.GetUserName(User));
                model.ReservedById = model.Member.MemberId;
            }
            return(View(model));
        }