public bool Insert(SiteCategory sitecategory) { int autonumber = 0; SiteCategoryDAC sitecategoryComponent = new SiteCategoryDAC(); bool endedSuccessfuly = sitecategoryComponent.InsertNewSiteCategory( ref autonumber, sitecategory.Name, sitecategory.RowGuid, sitecategory.ModifiedDate); if(endedSuccessfuly) { sitecategory.SiteCategoryId = autonumber; } return endedSuccessfuly; }
public bool Insert( string Name, Guid RowGuid, DateTime ModifiedDate) { SiteCategoryDAC sitecategoryComponent = new SiteCategoryDAC(); int SiteCategoryId = 0; return sitecategoryComponent.InsertNewSiteCategory( ref SiteCategoryId, Name, Guid.NewGuid(), DateTime.Now); }
public bool Insert( ref int SiteCategoryId, string Name, Guid RowGuid, DateTime ModifiedDate) { SiteCategoryDAC sitecategoryComponent = new SiteCategoryDAC(); return sitecategoryComponent.InsertNewSiteCategory( ref SiteCategoryId, Name, RowGuid, ModifiedDate); }