public async Task <string> Register([FromBody] RegisterArgument argument) { User user = argument.ToUser(); await UserRepo.Add(user); await UserRepo.SetNewSessionCookie(user); //TODO: optimize return(user.SessionCookie); }
private static string TranslateRegister(RegisterArgument arg) { return(GetRegister(arg.Register)); }