Ejemplo n.º 1
0
        public int Edit(AssetLocation assetLocation)
        {
            db.AssetLocations.Attach(assetLocation);
            db.Entry(assetLocation).State = EntityState.Modified;
            int rowAffected = db.SaveChanges();

            return(rowAffected);
        }
Ejemplo n.º 2
0
        public int Edit(GeneralCategory generalCategory)
        {
            db.GeneralCategories.Attach(generalCategory);
            db.Entry(generalCategory).State = EntityState.Modified;
            int rowAffected = db.SaveChanges();

            return(rowAffected);
        }
        public int Edit(ProductModel productModel)
        {
            db.ProductModels.Attach(productModel);
            db.Entry(productModel).State = EntityState.Modified;
            int rowAffected = db.SaveChanges();

            return(rowAffected);
        }
        public int Edit(Category category)
        {
            db.Categories.Attach(category);
            db.Entry(category).State = EntityState.Modified;
            int rowAffected = db.SaveChanges();

            return(rowAffected);
        }
        public int Edit(Organization organization)
        {
            db.Organizations.Attach(organization);
            db.Entry(organization).State = EntityState.Modified;
            int rowAffected = db.SaveChanges();

            return(rowAffected);
        }
Ejemplo n.º 6
0
        public int Edit(Branch branch)
        {
            db.Branches.Attach(branch);
            db.Entry(branch).State = EntityState.Modified;
            int rowAffected = db.SaveChanges();

            return(rowAffected);
        }
        public int Update(ProductModel obj)
        {
            db.ProductModels.Attach(obj);

            db.Entry(obj).State = EntityState.Modified;
            return(db.SaveChanges());
        }
        public int Update(GeneralCategory obj)
        {
            db.GeneralCategories.Attach(obj);

            db.Entry(obj).State = EntityState.Modified;
            return(db.SaveChanges());
        }
Ejemplo n.º 9
0
        public int Update(AssetPurchaseEntry obj)
        {
            db.AssetPurchaseEntries.Attach(obj);

            db.Entry(obj).State = EntityState.Modified;
            return(db.SaveChanges());
        }
Ejemplo n.º 10
0
        public int Update(Models.Organization organization)
        {
            db.Organizations.Attach(organization);

            db.Entry(organization).State = EntityState.Modified;
            return(db.SaveChanges());
        }
        public int Update(AssetLocation obj)
        {
            db.AssetLocations.Attach(obj);

            db.Entry(obj).State = EntityState.Modified;
            return(db.SaveChanges());
        }
Ejemplo n.º 12
0
        public int Update(OrganizationBranch organizationBranch)
        {
            db.OrganizationBranches.Attach(organizationBranch);

            db.Entry(organizationBranch).State = EntityState.Modified;
            return(db.SaveChanges());
        }