public async Task AddMenu(Menu menu)
        {
            await context.Menus.AddAsync(menu);

            context.SaveChanges();
        }
Exemplo n.º 2
0
        public async Task AddSubMenu(SubMenu subMenu)
        {
            await context.SubMenus.AddAsync(subMenu);

            context.SaveChanges();
        }
Exemplo n.º 3
0
        public async Task AddProperty(Property property)
        {
            await context.Properties.AddAsync(property);

            context.SaveChanges();
        }
Exemplo n.º 4
0
        public async Task AddProduct(Product product)
        {
            await context.Products.AddAsync(product);

            context.SaveChanges();
        }
        public async Task AddComment(Comment comment)
        {
            await context.Comments.AddAsync(comment);

            context.SaveChanges();
        }
        public async Task AddModel(Model model)
        {
            await context.Models.AddAsync(model);

            context.SaveChanges();
        }
        public async Task AddRating(Rating rating)
        {
            await context.Ratings.AddAsync(rating);

            context.SaveChanges();
        }
        public async Task AddMarka(Marka marka)
        {
            await context.Markas.AddAsync(marka);

            context.SaveChanges();
        }
        public async Task AddCategory(Category category)
        {
            await context.Categories.AddAsync(category);

            context.SaveChanges();
        }