コード例 #1
0
        public UserClientsDto GetUserWithClientsCreated(int id)
        {
            clientController = new ClientsController();
            UserClientsDto userClientsDto = new UserClientsDto
            {
                UserDto   = GetById(id),
                MyClients = clientController.FindByUser(id)
            };

            return(userClientsDto);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: oznama/csharp
        static void Main(string[] args)
        {
            ProductsView productsView = new ProductsView();

            productsView.Menu();

            UsersController u  = new UsersController();
            UserClientsDto  uc = u.GetUserWithClientsCreated(1);

            Console.WriteLine(uc.ToString());

            SalesView salesView = new SalesView();

            salesView.Sale();
            salesView.Search();

            Console.WriteLine("Press ENTER to Continue...");
            Console.Read();
        }