public EmailAccountInfo CreateAccount(EmailAccountInfo info, string password) { try { return(EmailService.AddAccount(info)); } catch (AccountExistsException) { throw new HostedEmailAdaptorException(HostedEmailAdaptorErrorCode.AccountAlreadyExists, new AddinErrorRecord() { Message = Resources.ErrMsg_OnlineUserAlreadyExist, Title = Resources.ErrTitle_OnlineUserAlreadyExist, }); } }