コード例 #1
0
        public async Task <IActionResult> Create(PatientViewModel model)
        {
            if (ModelState.IsValid)
            {
                model.PatientAdmin = CurrentUserId.ToString();
                var createUser = await _patientService.CreateUser(model);

                if (createUser)
                {
                    return(RedirectToAction("Index"));
                }
            }

            return(View());
        }