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)
            };
        }
Beispiel #2
0
        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());
        }