public void Insert(string OrganizationName,int? UserKeyUpdated,DateTime? LastChanged,string OrganizationDescription,int? OrganizationType) { InfoOrganization item = new InfoOrganization(); item.OrganizationName = OrganizationName; item.UserKeyUpdated = UserKeyUpdated; item.LastChanged = LastChanged; item.OrganizationDescription = OrganizationDescription; item.OrganizationType = OrganizationType; item.Save(UserName); }
public void Update(int InfoOrganizationsKey,string OrganizationName,int? UserKeyUpdated,DateTime? LastChanged,string OrganizationDescription,int? OrganizationType) { InfoOrganization item = new InfoOrganization(); item.MarkOld(); item.IsLoaded = true; item.InfoOrganizationsKey = InfoOrganizationsKey; item.OrganizationName = OrganizationName; item.UserKeyUpdated = UserKeyUpdated; item.LastChanged = LastChanged; item.OrganizationDescription = OrganizationDescription; item.OrganizationType = OrganizationType; item.Save(UserName); }