Exemple #1
0
        //Delete
        public void Delete(int Id)
        {
            EquipmentTypes EquipmentTypes = db.EquipmentTypes.Find(Id);

            EquipmentTypes.IsDeleted       = true;
            db.Entry(EquipmentTypes).State = EntityState.Modified;
            Save();
        }
Exemple #2
0
 //Update
 public void Update(EquipmentTypes EquipmentTypes)
 {
     db.Entry(EquipmentTypes).State = EntityState.Modified;
     Save();
 }
Exemple #3
0
 //Insert
 public void Insert(EquipmentTypes EquipmentTypes)
 {
     db.EquipmentTypes.Add(EquipmentTypes);
     Save();
 }