コード例 #1
0
        public static HomeIndexViewModel ForUserPage(string username, int Page_ID)
        {
            IInfastructureService infastructure = new InfastructureService();
            IPhonebookService provider = new PhonebookService();

            return new HomeIndexViewModel {
                navSection = infastructure.PageStructure_GetBySelected(Page_ID)
            };
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: j-burrows/phonebook-lib
        static void Main(string[] args)
        {
            Repository.Configuration.connString = "Server=localhost;Database=ApplicationData;Trusted_Connection=True;";
            IPhonebookService service = new PhonebookService();

            IEnumerable<Contact> contacts = service.Contact_GetByUser("");

            Console.Write(contacts.Count());
        }