public phonebookController(phonebookContext context)
        {
            _context = context;

            if (_context.PhonebookItems.Count() == 0)
            {
                _context.PhonebookItems.Add(new phonebookItem
                {
                    firstName = "testName", secondName = "testSecondName",
                    bDay      = "18.10", email = "*****@*****.**", phone = "89003211213"
                });
                _context.SaveChanges();
            }
        }
 public UsersController(phonebookContext context)
 {
     this._context = context;
 }
Exemple #3
0
 public MoodController(phonebookContext context)
 {
     this._context = context;
 }
 public EmployeeController(phonebookContext context)
 {
     this._context = context;
 }