Exemplo n.º 1
0
        private static void AddShipper(string name)
        {
            System.Console.WriteLine("Adding : {0}", name);

            IShipper shipper = new Shipper
            {
                CompanyName = name
            };

            int rowsAffected = shipperRepository.InsertShipper(shipper);

            System.Console.WriteLine("Rows affected: {0}", rowsAffected);
        }
Exemplo n.º 2
0
 public async Task <int> InsertShipper(ShipperModel model)
 {
     return(await _shipperRepository.InsertShipper(model));
 }