示例#1
0
        public Wall CreateWall(WallTypes type, string title)
        {
            WallType wallType = dbContext.WallTypes.Where(wt => wt.Title == type.ToString()).First();
            Wall     wall     = new Wall()
            {
                Title    = title,
                WallType = wallType
            };

            return(wall);
        }