Exemple #1
0
        static void Main(string[] args)
        {
            BlApi.IBl          bl  = BlApi.BlFactory.GetBLObj();
            Order              tmp = bl.GetOrder(5);
            List <HostingUnit> lst = bl.GetAllHostingUnits().ToList();

            Console.WriteLine(tmp);
            foreach (var i in lst)
            {
                Console.WriteLine(i);
            }

            Console.WriteLine((bl.GetPerson(212282610)));
            try
            {
                bl.UpdateStatusOrder(OrderStatus.APPROVED, 5);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }

            IEnumerable <IGrouping <Areas, BO.GuestRequest> > g = bl.GetGroupGuestRequestsByArea();

            foreach (var item in g)
            {
                foreach (var y in item)
                {
                    Console.WriteLine(y);
                }
            }
        }
        static void Main(string[] args)
        {
            BlApi.IBl bl  = BlApi.BlFactory.GetBLObj();
            Order     tmp = bl.GetOrder(5);



            try
            {
                bl.UpdateStatusOrder(OrderStatus.MAIL_SENT, 5);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }