Epiworx.Business.Note.DataPortal_Insert C# (CSharp) Method

DataPortal_Insert() private method

private DataPortal_Insert ( ) : void
return void
        protected override void DataPortal_Insert()
        {
            using (var dalManager = DataFactoryManager.GetManager())
            {
                var dalFactory = dalManager.GetProvider<INoteDataFactory>();

                var data = new NoteData();

                using (this.BypassPropertyChecks)
                {
                    this.ModifiedBy = ((IBusinessIdentity)Csla.ApplicationContext.User.Identity).UserId;
                    this.ModifiedDate = DateTime.Now;
                    this.CreatedBy = this.ModifiedBy;
                    this.CreatedDate = this.ModifiedDate;

                    this.Insert(data);

                    data = dalFactory.Insert(data);

                    this.NoteId = data.NoteId;
                }

                // this.FieldManager.UpdateChildren(data);
            }
        }