Example #1
0
        public DataTable GetAddresses(int id)
        {
            DAAddress daAdrese  = new DAAddress();
            DataTable dataTable = new DataTable();

            try
            {
                dataTable = daAdrese.GetAddresses(id);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            return(dataTable);
        }
Example #2
0
 public void InsertAdress(AddressModel adresa, out bool status, out string message)
 {
     message = "OK";
     status  = false;
     try
     {
         DAAddress daAdresa = new DAAddress();
         daAdresa.InsertAddress(adresa);
         DataTable dataTable2 = daAdresa.GetAddresses(adresa.PartnerId);
         message = "Adresa adaugata!";
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }