예제 #1
0
        public static List <FCCxCFormaPago> NEGOCIO_SelectAll()
        {
            try
            {
                var resTemp = new DATOS_FormaPago().DATOS_SelectAll().ToList();
                List <FCCxCFormaPago> res = new List <FCCxCFormaPago>();
                foreach (var r in resTemp)
                {
                    FCCxCFormaPago n = new FCCxCFormaPago()
                    {
                        IdFormaPago  = r.IdFormaPago,
                        DscFormaPago = r.DscFormaPago,
                        CodEstado    = r.CodEstado
                    };
                    res.Add(n);
                }

                return(res);
            }

            catch (Exception ex)
            {
                var msgError = ex.Message;
            }
            return(null);
        }
예제 #2
0
 public static bool NEGOCIO_delete(FCCxCFormaPago obj)
 {
     try
     {
         var resultado = new DATOS_FormaPago().DATOS_delete(obj);
         return(resultado);
     }
     catch (Exception ex)
     {
         var msgError = ex.Message;
         return(false);
     }
 }