Beispiel #1
0
        public IActionResult Register(User user)
        {
            string message = string.Empty;

            if (ModelState.IsValid)
            {
                if (_IDashboardService.GetByEmail(user.Email) == null)
                {
                    var result = _IDashboardService.AddUser(user);
                    message = result != Guid.Empty? "Proceed to Login": "******";
                }
            }
            ViewBag.Message = message;
            return(View());
        }