diff --git a/RMuseum/DbContext/RMuseumDbContext.cs b/RMuseum/DbContext/RMuseumDbContext.cs index fde89271..337d9090 100644 --- a/RMuseum/DbContext/RMuseumDbContext.cs +++ b/RMuseum/DbContext/RMuseumDbContext.cs @@ -369,7 +369,7 @@ namespace RMuseum.DbContext /// /// ganjoor half centuries /// - public DbSet GanjoorHalfCenturies { get; set; } + public DbSet GanjoorCenturies { get; set; } } } diff --git a/RMuseum/Migrations/20211021153153_GanjoorHalfCenturies.Designer.cs b/RMuseum/Migrations/20211021165721_GanjoorCenturies.Designer.cs similarity index 99% rename from RMuseum/Migrations/20211021153153_GanjoorHalfCenturies.Designer.cs rename to RMuseum/Migrations/20211021165721_GanjoorCenturies.Designer.cs index da866449..1ea4cb6f 100644 --- a/RMuseum/Migrations/20211021153153_GanjoorHalfCenturies.Designer.cs +++ b/RMuseum/Migrations/20211021165721_GanjoorCenturies.Designer.cs @@ -10,8 +10,8 @@ using RMuseum.DbContext; namespace RMuseum.Migrations { [DbContext(typeof(RMuseumDbContext))] - [Migration("20211021153153_GanjoorHalfCenturies")] - partial class GanjoorHalfCenturies + [Migration("20211021165721_GanjoorCenturies")] + partial class GanjoorCenturies { protected override void BuildTargetModel(ModelBuilder modelBuilder) { @@ -465,6 +465,58 @@ namespace RMuseum.Migrations b.ToTable("GanjoorCategories"); }); + modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCentury", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("EndYear") + .HasColumnType("int"); + + b.Property("HalfCenturyOrder") + .HasColumnType("int"); + + b.Property("Name") + .HasColumnType("nvarchar(max)"); + + b.Property("ShowInTimeLine") + .HasColumnType("bit"); + + b.Property("StartYear") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("GanjoorCenturies"); + }); + + modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCenturyPoet", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("GanjoorCenturyId") + .HasColumnType("int"); + + b.Property("PoetId") + .HasColumnType("int"); + + b.Property("PoetOrder") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("GanjoorCenturyId"); + + b.HasIndex("PoetId"); + + b.ToTable("GanjoorCenturyPoet"); + }); + modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorComment", b => { b.Property("Id") @@ -561,33 +613,6 @@ namespace RMuseum.Migrations b.ToTable("GanjoorReportedComments"); }); - modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorHalfCentury", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("EndYear") - .HasColumnType("int"); - - b.Property("HalfCenturyOrder") - .HasColumnType("int"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("ShowInTimeLine") - .HasColumnType("bit"); - - b.Property("StartYear") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("GanjoorHalfCenturies"); - }); - modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorHealthCheckError", b => { b.Property("Id") @@ -829,31 +854,6 @@ namespace RMuseum.Migrations b.ToTable("GanjoorPageSnapshots"); }); - modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPeriodPoet", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("GanjoorHalfCenturyId") - .HasColumnType("int"); - - b.Property("PoetId") - .HasColumnType("int"); - - b.Property("PoetOrder") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("GanjoorHalfCenturyId"); - - b.HasIndex("PoetId"); - - b.ToTable("GanjoorPeriodPoet"); - }); - modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPoem", b => { b.Property("Id") @@ -2606,6 +2606,19 @@ namespace RMuseum.Migrations b.Navigation("Poet"); }); + modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCenturyPoet", b => + { + b.HasOne("RMuseum.Models.Ganjoor.GanjoorCentury", null) + .WithMany("Poets") + .HasForeignKey("GanjoorCenturyId"); + + b.HasOne("RMuseum.Models.Ganjoor.GanjoorPoet", "Poet") + .WithMany() + .HasForeignKey("PoetId"); + + b.Navigation("Poet"); + }); + modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorComment", b => { b.HasOne("RMuseum.Models.Ganjoor.GanjoorComment", "InReplyTo") @@ -2727,19 +2740,6 @@ namespace RMuseum.Migrations b.Navigation("MadeObsoleteByUser"); }); - modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPeriodPoet", b => - { - b.HasOne("RMuseum.Models.Ganjoor.GanjoorHalfCentury", null) - .WithMany("Poets") - .HasForeignKey("GanjoorHalfCenturyId"); - - b.HasOne("RMuseum.Models.Ganjoor.GanjoorPoet", "Poet") - .WithMany() - .HasForeignKey("PoetId"); - - b.Navigation("Poet"); - }); - modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPoem", b => { b.HasOne("RMuseum.Models.Ganjoor.GanjoorCat", "Cat") @@ -3234,7 +3234,7 @@ namespace RMuseum.Migrations b.Navigation("Tags"); }); - modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorHalfCentury", b => + modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCentury", b => { b.Navigation("Poets"); }); diff --git a/RMuseum/Migrations/20211021153153_GanjoorHalfCenturies.cs b/RMuseum/Migrations/20211021165721_GanjoorCenturies.cs similarity index 75% rename from RMuseum/Migrations/20211021153153_GanjoorHalfCenturies.cs rename to RMuseum/Migrations/20211021165721_GanjoorCenturies.cs index 3b8151fe..d84998c9 100644 --- a/RMuseum/Migrations/20211021153153_GanjoorHalfCenturies.cs +++ b/RMuseum/Migrations/20211021165721_GanjoorCenturies.cs @@ -2,7 +2,7 @@ namespace RMuseum.Migrations { - public partial class GanjoorHalfCenturies : Migration + public partial class GanjoorCenturies : Migration { protected override void Up(MigrationBuilder migrationBuilder) { @@ -28,7 +28,7 @@ namespace RMuseum.Migrations defaultValue: 0); migrationBuilder.CreateTable( - name: "GanjoorHalfCenturies", + name: "GanjoorCenturies", columns: table => new { Id = table.Column(type: "int", nullable: false) @@ -41,30 +41,30 @@ namespace RMuseum.Migrations }, constraints: table => { - table.PrimaryKey("PK_GanjoorHalfCenturies", x => x.Id); + table.PrimaryKey("PK_GanjoorCenturies", x => x.Id); }); migrationBuilder.CreateTable( - name: "GanjoorPeriodPoet", + name: "GanjoorCenturyPoet", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), PoetOrder = table.Column(type: "int", nullable: false), PoetId = table.Column(type: "int", nullable: true), - GanjoorHalfCenturyId = table.Column(type: "int", nullable: true) + GanjoorCenturyId = table.Column(type: "int", nullable: true) }, constraints: table => { - table.PrimaryKey("PK_GanjoorPeriodPoet", x => x.Id); + table.PrimaryKey("PK_GanjoorCenturyPoet", x => x.Id); table.ForeignKey( - name: "FK_GanjoorPeriodPoet_GanjoorHalfCenturies_GanjoorHalfCenturyId", - column: x => x.GanjoorHalfCenturyId, - principalTable: "GanjoorHalfCenturies", + name: "FK_GanjoorCenturyPoet_GanjoorCenturies_GanjoorCenturyId", + column: x => x.GanjoorCenturyId, + principalTable: "GanjoorCenturies", principalColumn: "Id", onDelete: ReferentialAction.Restrict); table.ForeignKey( - name: "FK_GanjoorPeriodPoet_GanjoorPoets_PoetId", + name: "FK_GanjoorCenturyPoet_GanjoorPoets_PoetId", column: x => x.PoetId, principalTable: "GanjoorPoets", principalColumn: "Id", @@ -72,23 +72,23 @@ namespace RMuseum.Migrations }); migrationBuilder.CreateIndex( - name: "IX_GanjoorPeriodPoet_GanjoorHalfCenturyId", - table: "GanjoorPeriodPoet", - column: "GanjoorHalfCenturyId"); + name: "IX_GanjoorCenturyPoet_GanjoorCenturyId", + table: "GanjoorCenturyPoet", + column: "GanjoorCenturyId"); migrationBuilder.CreateIndex( - name: "IX_GanjoorPeriodPoet_PoetId", - table: "GanjoorPeriodPoet", + name: "IX_GanjoorCenturyPoet_PoetId", + table: "GanjoorCenturyPoet", column: "PoetId"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( - name: "GanjoorPeriodPoet"); + name: "GanjoorCenturyPoet"); migrationBuilder.DropTable( - name: "GanjoorHalfCenturies"); + name: "GanjoorCenturies"); migrationBuilder.DropColumn( name: "BirthYearInLHijri", diff --git a/RMuseum/Migrations/RMuseumDbContextModelSnapshot.cs b/RMuseum/Migrations/RMuseumDbContextModelSnapshot.cs index 3e43cddd..3a16c7fa 100644 --- a/RMuseum/Migrations/RMuseumDbContextModelSnapshot.cs +++ b/RMuseum/Migrations/RMuseumDbContextModelSnapshot.cs @@ -463,6 +463,58 @@ namespace RMuseum.Migrations b.ToTable("GanjoorCategories"); }); + modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCentury", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("EndYear") + .HasColumnType("int"); + + b.Property("HalfCenturyOrder") + .HasColumnType("int"); + + b.Property("Name") + .HasColumnType("nvarchar(max)"); + + b.Property("ShowInTimeLine") + .HasColumnType("bit"); + + b.Property("StartYear") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("GanjoorCenturies"); + }); + + modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCenturyPoet", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("GanjoorCenturyId") + .HasColumnType("int"); + + b.Property("PoetId") + .HasColumnType("int"); + + b.Property("PoetOrder") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("GanjoorCenturyId"); + + b.HasIndex("PoetId"); + + b.ToTable("GanjoorCenturyPoet"); + }); + modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorComment", b => { b.Property("Id") @@ -559,33 +611,6 @@ namespace RMuseum.Migrations b.ToTable("GanjoorReportedComments"); }); - modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorHalfCentury", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("EndYear") - .HasColumnType("int"); - - b.Property("HalfCenturyOrder") - .HasColumnType("int"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("ShowInTimeLine") - .HasColumnType("bit"); - - b.Property("StartYear") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("GanjoorHalfCenturies"); - }); - modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorHealthCheckError", b => { b.Property("Id") @@ -827,31 +852,6 @@ namespace RMuseum.Migrations b.ToTable("GanjoorPageSnapshots"); }); - modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPeriodPoet", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("GanjoorHalfCenturyId") - .HasColumnType("int"); - - b.Property("PoetId") - .HasColumnType("int"); - - b.Property("PoetOrder") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("GanjoorHalfCenturyId"); - - b.HasIndex("PoetId"); - - b.ToTable("GanjoorPeriodPoet"); - }); - modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPoem", b => { b.Property("Id") @@ -2604,6 +2604,19 @@ namespace RMuseum.Migrations b.Navigation("Poet"); }); + modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCenturyPoet", b => + { + b.HasOne("RMuseum.Models.Ganjoor.GanjoorCentury", null) + .WithMany("Poets") + .HasForeignKey("GanjoorCenturyId"); + + b.HasOne("RMuseum.Models.Ganjoor.GanjoorPoet", "Poet") + .WithMany() + .HasForeignKey("PoetId"); + + b.Navigation("Poet"); + }); + modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorComment", b => { b.HasOne("RMuseum.Models.Ganjoor.GanjoorComment", "InReplyTo") @@ -2725,19 +2738,6 @@ namespace RMuseum.Migrations b.Navigation("MadeObsoleteByUser"); }); - modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPeriodPoet", b => - { - b.HasOne("RMuseum.Models.Ganjoor.GanjoorHalfCentury", null) - .WithMany("Poets") - .HasForeignKey("GanjoorHalfCenturyId"); - - b.HasOne("RMuseum.Models.Ganjoor.GanjoorPoet", "Poet") - .WithMany() - .HasForeignKey("PoetId"); - - b.Navigation("Poet"); - }); - modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPoem", b => { b.HasOne("RMuseum.Models.Ganjoor.GanjoorCat", "Cat") @@ -3232,7 +3232,7 @@ namespace RMuseum.Migrations b.Navigation("Tags"); }); - modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorHalfCentury", b => + modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCentury", b => { b.Navigation("Poets"); }); diff --git a/RMuseum/Models/Ganjoor/GanjoorHalfCentury.cs b/RMuseum/Models/Ganjoor/GanjoorCentury.cs similarity index 90% rename from RMuseum/Models/Ganjoor/GanjoorHalfCentury.cs rename to RMuseum/Models/Ganjoor/GanjoorCentury.cs index 08eefcf3..cc4d6558 100644 --- a/RMuseum/Models/Ganjoor/GanjoorHalfCentury.cs +++ b/RMuseum/Models/Ganjoor/GanjoorCentury.cs @@ -6,7 +6,7 @@ namespace RMuseum.Models.Ganjoor /// /// half century /// - public class GanjoorHalfCentury + public class GanjoorCentury { /// /// id @@ -41,7 +41,7 @@ namespace RMuseum.Models.Ganjoor /// /// poets /// - public List Poets { get; set; } + public List Poets { get; set; } } } diff --git a/RMuseum/Models/Ganjoor/GanjoorPeriodPoet.cs b/RMuseum/Models/Ganjoor/GanjoorCenturyPoet.cs similarity index 93% rename from RMuseum/Models/Ganjoor/GanjoorPeriodPoet.cs rename to RMuseum/Models/Ganjoor/GanjoorCenturyPoet.cs index 9b169f65..4c7d9f11 100644 --- a/RMuseum/Models/Ganjoor/GanjoorPeriodPoet.cs +++ b/RMuseum/Models/Ganjoor/GanjoorCenturyPoet.cs @@ -3,7 +3,7 @@ /// /// half century /// - public class GanjoorPeriodPoet + public class GanjoorCenturyPoet { /// /// id diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml index c932caf8..ffb8469b 100644 --- a/RMuseum/RMuseum.xml +++ b/RMuseum/RMuseum.xml @@ -2092,7 +2092,7 @@ ganjoor verse numbers - + ganjoor half centuries @@ -4590,6 +4590,71 @@ sample: /hafez/ghazal + + + half century + + + + + id + + + + + name + + + + + order + + + + + start + + + + + end + + + + + show in time line + + + + + poets + + + + + half century + + + + + id + + + + + order + + + + + poet id + + + + + poet + + Ganjoor Comment @@ -4732,46 +4797,6 @@ reported by user - - - half century - - - - - id - - - - - name - - - - - order - - - - - start - - - - - end - - - - - show in time line - - - - - poets - - Ganjoor Page Health Check log @@ -5171,31 +5196,6 @@ Prosody and Statistics - - - half century - - - - - id - - - - - order - - - - - poet id - - - - - poet - - Ganjoor Poem diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Centuries.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Centuries.cs index 758a3dc4..48d746d4 100644 --- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Centuries.cs +++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Centuries.cs @@ -22,15 +22,15 @@ namespace RMuseum.Services.Implementation { try { - await _context.Database.ExecuteSqlRawAsync("DELETE FROM GanjoorPeriodPoet"); - var oldOnes = await _context.GanjoorHalfCenturies.ToArrayAsync(); + await _context.Database.ExecuteSqlRawAsync("DELETE FROM GanjoorCenturyPoet"); + var oldOnes = await _context.GanjoorCenturies.ToArrayAsync(); _context.RemoveRange(oldOnes); await _context.SaveChangesAsync(); - var periods = new List + var periods = new List { - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 1, Name = "قرن سوم", @@ -38,7 +38,7 @@ namespace RMuseum.Services.Implementation EndYear = 300, ShowInTimeLine = true, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 2, Name = "سوم و چهارم", @@ -46,7 +46,7 @@ namespace RMuseum.Services.Implementation EndYear = 350, ShowInTimeLine = false, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 3, Name = "قرن چهارم", @@ -54,7 +54,7 @@ namespace RMuseum.Services.Implementation EndYear = 400, ShowInTimeLine = true, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 4, Name = "چهارم و پنجم", @@ -62,7 +62,7 @@ namespace RMuseum.Services.Implementation EndYear = 450, ShowInTimeLine = false, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 5, Name = "قرن پنجم", @@ -70,7 +70,7 @@ namespace RMuseum.Services.Implementation EndYear = 500, ShowInTimeLine = true, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 6, Name = "پنجم و ششم", @@ -78,7 +78,7 @@ namespace RMuseum.Services.Implementation EndYear = 550, ShowInTimeLine = false, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 7, Name = "قرن ششم", @@ -86,7 +86,7 @@ namespace RMuseum.Services.Implementation EndYear = 600, ShowInTimeLine = true, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 8, Name = "ششم و هفتم", @@ -94,7 +94,7 @@ namespace RMuseum.Services.Implementation EndYear = 650, ShowInTimeLine = false, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 9, Name = "قرن هفتم", @@ -102,7 +102,7 @@ namespace RMuseum.Services.Implementation EndYear = 700, ShowInTimeLine = true, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 10, Name = "هفتم و هشتم", @@ -110,7 +110,7 @@ namespace RMuseum.Services.Implementation EndYear = 750, ShowInTimeLine = false, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 11, Name = "قرن هشتم", @@ -118,7 +118,7 @@ namespace RMuseum.Services.Implementation EndYear = 800, ShowInTimeLine = true, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 12, Name = "هشتم و نهم", @@ -126,7 +126,7 @@ namespace RMuseum.Services.Implementation EndYear = 850, ShowInTimeLine = false, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 13, Name = "قرن نهم", @@ -134,7 +134,7 @@ namespace RMuseum.Services.Implementation EndYear = 900, ShowInTimeLine = true, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 14, Name = "نهم و دهم", @@ -142,7 +142,7 @@ namespace RMuseum.Services.Implementation EndYear = 950, ShowInTimeLine = false, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 15, Name = "قرن دهم", @@ -150,7 +150,7 @@ namespace RMuseum.Services.Implementation EndYear = 1000, ShowInTimeLine = true, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 16, Name = "دهم و یازدهم", @@ -158,7 +158,7 @@ namespace RMuseum.Services.Implementation EndYear = 1050, ShowInTimeLine = false, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 17, Name = "قرن یازدهم", @@ -166,7 +166,7 @@ namespace RMuseum.Services.Implementation EndYear = 1100, ShowInTimeLine = true, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 18, Name = "یازذهم و دوازدهم", @@ -174,7 +174,7 @@ namespace RMuseum.Services.Implementation EndYear = 1150, ShowInTimeLine = false, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 19, Name = "قرن دوازدهم", @@ -182,7 +182,7 @@ namespace RMuseum.Services.Implementation EndYear = 1200, ShowInTimeLine = true, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 20, Name = "دوازدهم و سیزدهم", @@ -190,7 +190,7 @@ namespace RMuseum.Services.Implementation EndYear = 1250, ShowInTimeLine = false, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 21, Name = "قرن سیزدهم", @@ -198,7 +198,7 @@ namespace RMuseum.Services.Implementation EndYear = 1300, ShowInTimeLine = true, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 22, Name = "سیزدهم و چهاردهم", @@ -206,7 +206,7 @@ namespace RMuseum.Services.Implementation EndYear = 1350, ShowInTimeLine = false, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 23, Name = "قرن چهاردهم", @@ -214,7 +214,7 @@ namespace RMuseum.Services.Implementation EndYear = 1400, ShowInTimeLine = true, }, - new GanjoorHalfCentury() + new GanjoorCentury() { HalfCenturyOrder = 24, Name = "چهاردهم و پانزدهم", @@ -234,10 +234,10 @@ namespace RMuseum.Services.Implementation if(period != null) { if (period.Poets == null) - period.Poets = new List(); + period.Poets = new List(); period.Poets.Add ( - new GanjoorPeriodPoet() + new GanjoorCenturyPoet() { PoetOrder = period.Poets.Count, PoetId = poet.Id