Пример #1
0
 public async Task<ActionResult> Register(CreateUser dto)
 {
     if (!ModelState.IsValid) return View();
     var result = await UserFacade.CreateAsync(dto);
     if (result.Succeeded)
     {
         var model = new LoginUser
         {
             UserName = dto.UserName,
             Password = dto.Password
         };