public static FormaPagamentoBL getService()
 {
     if (_FormaPagamentoBL == null)
     {
         _FormaPagamentoBL = new FormaPagamentoBL();
     }
     return(_FormaPagamentoBL);
 }
        private byte?getFormaPagamento(string descricao)
        {
            byte id = 0;

            descricao = UtilString.onlyAlphaNumber(UtilString.cleanAccents(descricao)).ToUpper();

            var lista = new FormaPagamentoBL().listar("", "S").ToList();

            lista.ForEach(item => {
                item.descricao = UtilString.onlyAlphaNumber(UtilString.cleanAccents(item.descricao)).ToUpper();
            });

            var Objeto = lista.Where(x => x.descricao == descricao).FirstOrDefault();

            if (Objeto != null)
            {
                id = Objeto.id;
            }

            return(id);
        }