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); }