Exemplo n.º 1
0
        public static void init(delishapplicationContext _context)
        {
            if (!_context.Chef.Any())
            {
                {
                    Chef c = new Chef()
                    {
                        ChefUserName = "******",
                        Cuisine      = "Israeli",
                        City         = "Tel-Aviv",
                        Email        = "*****@*****.**",
                        Experience   = 5,
                        FirstName    = "Moshe",
                        LastName     = "Levi",
                        Kosher       = false,
                        PhoneNumber  = "0523454334",
                        Password     = "******",
                        MyDishes     = null
                    };

                    _context.Add(c);
                }
                _context.SaveChanges();
            }
        }
Exemplo n.º 2
0
 public ChefsController(delishapplicationContext context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public BranchesController(delishapplicationContext context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 public OrdersController(delishapplicationContext context)
 {
     _context = context;
 }
Exemplo n.º 5
0
 public HomeController(delishapplicationContext context)
 {
     _context = context;
 }