Beispiel #1
0
 public int Create(AssetManager.Models.GearFault department)
 {
     AssetManager.Models.GearFault dept = department.MapTo <AssetManager.Models.GearFault>();
     //dept.SetAuditFieldsOnCreate<AssetManager.Models.GearFault>(this.Context);
     department.Id = Convert.ToInt32(this.DB.Insert(dept));
     return(department.Id);
 }
Beispiel #2
0
 public void Update(AssetManager.Models.GearFault department)
 {
     AssetManager.Models.GearFault dept = department.MapTo <AssetManager.Models.GearFault>();
     //dept.SetAuditFieldsOnUpdate<AssetManager.Models.GearFault>(this.Context);
     this.DB.Update(dept, new List <string> {
         "Name", "ModifiedBy", "DateModified"
     });
 }