public void Insert(string UnitName, string UnitType, string Description) { DDMesureUnit item = new DDMesureUnit(); item.UnitName = UnitName; item.UnitType = UnitType; item.Description = Description; item.Save(UserName); }
public void Update(int UnitID, string UnitName, string UnitType, string Description) { DDMesureUnit item = new DDMesureUnit(); item.MarkOld(); item.IsLoaded = true; item.UnitID = UnitID; item.UnitName = UnitName; item.UnitType = UnitType; item.Description = Description; item.Save(UserName); }