Пример #1
0
 public override int Insert()
 {
     Database.DatabaseModels.Alignment alignment = new Database.DatabaseModels.Alignment
     {
         name        = name,
         description = description
     };
     return(alignment.Insert());
 }
Пример #2
0
        public override bool Load(int id)
        {
            Database.DatabaseModels.Alignment alignment = new Database.DatabaseModels.Alignment();
            bool hasLoaded = alignment.Load(id);

            this.id     = alignment.id;
            name        = alignment.name;
            description = alignment.description;
            return(hasLoaded);
        }