public void Insert(string LocationName,string LocationIntro,string LocationContent,string LocationAddress,string LocationMan,int? CreatedBy,DateTime? CreatedOn,int? ModifiedBy,DateTime? ModifiedOn) { SysLocation item = new SysLocation(); item.LocationName = LocationName; item.LocationIntro = LocationIntro; item.LocationContent = LocationContent; item.LocationAddress = LocationAddress; item.LocationMan = LocationMan; item.CreatedBy = CreatedBy; item.CreatedOn = CreatedOn; item.ModifiedBy = ModifiedBy; item.ModifiedOn = ModifiedOn; item.Save(UserName); }
public void Update(int Id,string LocationName,string LocationIntro,string LocationContent,string LocationAddress,string LocationMan,int? CreatedBy,DateTime? CreatedOn,int? ModifiedBy,DateTime? ModifiedOn) { SysLocation item = new SysLocation(); item.MarkOld(); item.IsLoaded = true; item.Id = Id; item.LocationName = LocationName; item.LocationIntro = LocationIntro; item.LocationContent = LocationContent; item.LocationAddress = LocationAddress; item.LocationMan = LocationMan; item.CreatedBy = CreatedBy; item.CreatedOn = CreatedOn; item.ModifiedBy = ModifiedBy; item.ModifiedOn = ModifiedOn; item.Save(UserName); }