public async Task <EmailSettings> GetEmailSettings() { var result = (await ConnectionWrapper.QueryAsync <dynamic>("GetInstanceEmailSettings", commandType: CommandType.StoredProcedure)).FirstOrDefault(); return(result == null ? null : EmailSettings.CreateFromString(result.EmailSettings)); }