Ejemplo n.º 1
0
        public CustomerInfo GetCustomerById(int customerId)
        {
            CustomerInfo customerInfo = new CustomerInfo();

            CustomerDal customerDal = new CustomerDal();

            DataSet ds = customerDal.GetCustomerById(customerId);

            if(ds!=null &&ds.Tables.Count>0&&ds.Tables[0].Rows.Count>0)
            {
                customerInfo = ConvertToModel(ds.Tables[0].Rows[0]);
            }

            return customerInfo;
        }
Ejemplo n.º 2
0
        public DataSet GetAllCustomer()
        {
            CustomerDal dal = new CustomerDal();

            return dal.GetAllCustomer();
        }