public CreateRoomVm() { CreateRoomAction = new CreateRoomActionVm(); CreateRoomContent = new CreateRoomContentVm(); RoomActions = new List <CreateRoomActionVm>(); RoomContents = new List <CreateRoomContentVm>(); }
public CreateRoomVm(IEnumerable <string> cultures) { this.Cultures = cultures; CreateRoomAction = new CreateRoomActionVm(cultures); CreateRoomContent = new CreateRoomContentVm(cultures); RoomActions = new List <CreateRoomActionVm>(); RoomContents = new List <CreateRoomContentVm>(); CultureNames = new Dictionary <string, string>(); foreach (var item in cultures) { CultureNames.Add(item, string.Empty); } }