Beispiel #1
0
 public DigikalaPageBaseDTO(B5_Url b5)
 {
     Loc        = b5.loc;
     ChangeFreq = b5.changefreq;
     Priority   = b5.priority;
     if (b5.image.caption != null && b5.image.loc != null)
     {
         ImageLoc     = b5.image.loc;
         ImageCaption = b5.image.caption;
     }
 }
Beispiel #2
0
 public void AddBasePage(B5_Url dto)
 {
     try
     {
         using (var digi = new DigikalaRepository())
         {
             digi.AddDigikalaBasePage(new DigikalaPageBaseDTO(dto));
         }
     }
     catch (Exception ex)
     {
         LogDTO log = new LogDTO()
         {
             DateTime    = DateTime.Now,
             Description = "Error Convert Model, Error= " + ex.ToString(),
             Title       = "Convert To Standard DTO, Digikala",
             MethodName  = "AddBasePage",
             ProjectId   = 1,
             Url         = dto.loc
         };
         Logger.AddLog(log);
     }
 }