Beispiel #1
0
        public async Task RegisterAsync()
        {
            var param = new RegisterDto()
            {
                Name     = "Test",
                Password = "******",
                Mobile   = "156 ",
                MailBox  = "*****@*****.**"
            };
            var result = await _userSvc.RegisterAsync(param);

            Assert.IsTrue(result.ActionResult);
        }
        public async Task <JsonResult> Register(RegisterDto dto)
        {
            var resultTask = _userSvc.RegisterAsync(dto);

            return(Json(await resultTask));
        }