public int Update(T obj) { if (obj is basicEntity) { basicEntity o = obj as basicEntity; //o.ModifiedOn = DateTime.Now; //o.ModifiedUsername = App.Common.GetCurrentUsername(); } return(Save()); }
public int Insert(T obj) { _objectSet.Add(obj); if (obj is basicEntity) { basicEntity o = obj as basicEntity; DateTime now = DateTime.Now; //o.CreatedOn = now; //o.ModifiedOn = now; //o.ModifiedUsername = App.Common.GetCurrentUsername(); } return(Save()); }