public ActionResult Create(UserDto userDto)
        {
            _userApiService.Add(userDto);

            return(RedirectToAction("Index"));
        }
Beispiel #2
0
        public async Task <ActionResult> Register(RegisterUserModel registerUserModel)
        {
            await _userApiService.Add(_autoMapperBase.MapToSameType <RegisterUserModel, InstructorDto>(registerUserModel), ApiUrl + "api/User");

            return(View());
        }