public IEnumerable <ValidationResult> Validate(ValidationContext validationContext) { //Other fields Validation if (!String.IsNullOrEmpty(SocialMedia)) { SocialMedia = SocialMedia.Trim(); } if (!String.IsNullOrEmpty(BusinessDescription)) { BusinessDescription = BusinessDescription.Trim(); } if (!String.IsNullOrEmpty(WebAddress)) { WebAddress = WebAddress.Trim(); } if (!String.IsNullOrEmpty(DomainLoginUrl)) { DomainLoginUrl = DomainLoginUrl.Trim(); } if (!String.IsNullOrEmpty(DomainUsername)) { DomainUsername = DomainUsername.Trim(); } if (!String.IsNullOrEmpty(DomainPassword)) { DomainPassword = DomainPassword.Trim(); } if (!String.IsNullOrEmpty(HostingLoginUrl)) { HostingLoginUrl = HostingLoginUrl.Trim(); } if (!String.IsNullOrEmpty(HostingUserName)) { HostingUserName = HostingUserName.Trim(); } if (!String.IsNullOrEmpty(HostingPassword)) { HostingPassword = HostingPassword.Trim(); } if (!String.IsNullOrEmpty(WpLoginUrl)) { WpLoginUrl = WpLoginUrl.Trim(); } if (!String.IsNullOrEmpty(WpUserName)) { WpUserName = WpUserName.Trim(); } if (!String.IsNullOrEmpty(WpPassword)) { WpPassword = WpPassword.Trim(); } if (!String.IsNullOrEmpty(GoogleAnalyticsUrl)) { GoogleAnalyticsUrl = GoogleAnalyticsUrl.Trim(); } if (!String.IsNullOrEmpty(GoogleAnalyticsUsername)) { GoogleAnalyticsUsername = GoogleAnalyticsUsername.Trim(); } if (!String.IsNullOrEmpty(GoogleAnalyticsPassword)) { GoogleAnalyticsPassword = GoogleAnalyticsPassword.Trim(); } if (!String.IsNullOrEmpty(GoogleSearchConsoleUrl)) { GoogleSearchConsoleUrl = GoogleSearchConsoleUrl.Trim(); } if (!String.IsNullOrEmpty(GoogleSearchConsoleUsername)) { GoogleSearchConsoleUsername = GoogleSearchConsoleUsername.Trim(); } if (!String.IsNullOrEmpty(GoogleSearchConsolePassword)) { GoogleSearchConsolePassword = GoogleSearchConsolePassword.Trim(); } if (!String.IsNullOrEmpty(BingWemasterToolsUrl)) { BingWemasterToolsUrl = BingWemasterToolsUrl.Trim(); } if (!String.IsNullOrEmpty(BingWemasterToolsUsername)) { BingWemasterToolsUsername = BingWemasterToolsUsername.Trim(); } if (!String.IsNullOrEmpty(BingWemasterToolsPassword)) { BingWemasterToolsPassword = BingWemasterToolsPassword.Trim(); } if (!String.IsNullOrEmpty(GoogleMyBusinessUrl)) { GoogleMyBusinessUrl = GoogleMyBusinessUrl.Trim(); } if (!String.IsNullOrEmpty(GoogleMyBusinessUsername)) { GoogleMyBusinessUsername = GoogleMyBusinessUsername.Trim(); } if (!String.IsNullOrEmpty(GoogleMyBusinessPassword)) { GoogleMyBusinessPassword = GoogleMyBusinessPassword.Trim(); } if (!String.IsNullOrEmpty(KeyWords)) { KeyWords = KeyWords.Trim(); } if (!String.IsNullOrEmpty(TargetKeyPhases)) { TargetKeyPhases = TargetKeyPhases.Trim(); } if (!String.IsNullOrEmpty(TargetAreas)) { TargetAreas = TargetAreas.Trim(); } if (!String.IsNullOrEmpty(CompetitorsUrl)) { CompetitorsUrl = CompetitorsUrl.Trim(); } if (!String.IsNullOrEmpty(SocialMedia)) { SocialMedia = SocialMedia.Trim(); } if (!String.IsNullOrEmpty(SocialMedia2)) { SocialMedia2 = SocialMedia2.Trim(); } if (!String.IsNullOrEmpty(SocialMedia3)) { SocialMedia3 = SocialMedia3.Trim(); } if (!String.IsNullOrEmpty(SocialMedia4)) { SocialMedia4 = SocialMedia4.Trim(); } if (!String.IsNullOrEmpty(OtherMarketingTypes)) { OtherMarketingTypes = OtherMarketingTypes.Trim(); } if (!String.IsNullOrEmpty(MarketingGoals)) { MarketingGoals = MarketingGoals.Trim(); } //ExpandPlaning = ExpandPlaning.Trim(); yield return(ValidationResult.Success); }