public RegisterResponse Register(Register register) { register.Password = Cryptography.Encrypt(register.Password); _context.Users.AddAsync(register); register.SuccessfullyRegistered = true; _context.SaveChanges(); SetupActivation(register); return(register.Adapt <RegisterResponse>()); }