public async Task <ActionResult> Registration([Bind] UserAuthViewModel users) { var user = new Users() { Email = users.Email, Username = users.Username, Password = Cryptography.Base64Encode(users.Password), FullName = users.FullName, RoleID = users.RoleID, }; var response = await writer.UsersAuthentificationRegister(user); if (response.IsSuccess) { return(RedirectToAction(nameof(Index), "Home", new { @status = 201 })); } return(RedirectToAction(nameof(Index), "Home", new { @status = 202 })); }