public UserInfo Create(UserInfo entity)
        {
            UserInfo createdUser = _contex.Add <UserInfo>(entity).Entity;

            _contex.SaveChanges();
            return(createdUser);
        }
        public Category Create(Category entity)
        {
            Category createdCategory = _ctx.Add <Category>(entity).Entity;

            _ctx.SaveChanges();
            return(createdCategory);
        }
Esempio n. 3
0
        public Product Create(Product entity)
        {
            Product createdProduct = _ctx.Add <Product>(entity).Entity;

            _ctx.SaveChanges();
            return(createdProduct);
        }
        public BookingOrder Create(BookingOrder entity)
        {
            BookingOrder createdBooking = _ctx.Add <BookingOrder>(entity).Entity;

            _ctx.SaveChanges();
            return(createdBooking);
        }