Exemple #1
0
        public async Task <int> Insert(Manufacturers manufacturer)
        {
            /*item.ManufacturerId = 1;
             * item.CategoryId = 3;
             * item.Width = 1;
             * item.Height = 1;*/

            IspContext.Add(manufacturer);
            return(await IspContext.SaveChangesAsync());
        }
        public async Task <int> Insert(Items item)
        {
            item.ManufacturerId = 1;
            item.CategoryId     = 3;
            item.Width          = 1;
            item.Height         = 1;

            IspContext.Add(item);
            return(await IspContext.SaveChangesAsync());
        }
Exemple #3
0
 public async Task <int> Insert(Users user)
 {
     IspContext.Add(user);
     return(await IspContext.SaveChangesAsync());
 }