Esempio n. 1
0
        public Models.Response.Account NormailizedOutputFields(Models.Response.Account account)
        {
            var outputAccount = account;

            // LosName
            outputAccount.ClientLoanOriginationSystem = _shareService.GetLosNameById(account.EncompassEnabled);

            // PremiumServicesEnabled Null & 0: No; 1: Yes; 2: Per User
            if ((!account.PremiumServicesEnabled.HasValue) || (account.PremiumServicesEnabled == 0))
            {
                outputAccount.EnablePremiumService = ApiConstant.NoString;
            }
            else if (account.PremiumServicesEnabled == 1)
            {
                outputAccount.EnablePremiumService = ApiConstant.YesString;
            }
            else if (account.PremiumServicesEnabled == 2)
            {
                outputAccount.EnablePremiumService = ApiConstant.EnablePremiumServicePerUser;
            }

            return(outputAccount);
        }