Exemple #1
0
        public List <FCCxCEstado> DATOS_SelectAll()
        {
            try
            {
                var resTemp            = bd.pr_FCCxCEstado_SeleccionarTodos(new ObjectParameter("iCodError", "0")).ToList();
                List <FCCxCEstado> res = new List <FCCxCEstado>();
                foreach (var r in resTemp)
                {
                    FCCxCEstado n = new FCCxCEstado()
                    {
                        IdEstado  = r.IdEstado,
                        DscEstado = r.DscEstado,
                    };
                    res.Add(n);
                }
                return(res);
            }

            catch (Exception ex)
            {
                var msgError = ex.Message;
            }
            return(null);
        }