Ejemplo n.º 1
0
 public object GetSampleAdInformation(SelectAdsByFilter_Result c)
 {
     return(new
     {
         Id = c.Id,
         Title = c.Title,
         Description = c.Description,
         Price = c.Price.ToString(),
         UserName = c.UserCreated_UserName,
         CreatedDate = DateService.GetDateByCulture(c.CreateDateTime),
         CommentsCount = c.CommentsCount.Value,
         FavoritesCount = c.FavoritesCount,
     });
 }
Ejemplo n.º 2
0
 public object GetSampleAdInformation(SelectAdsByFilter_Result c)
 {
     return(new AdInformationVM
     {
         Id = c.Id,
         Title = c.Title,
         Price = c.Price.ToString(),
         UserName = c.UserCreated_UserName,
         Province = c._Province,
         SinceDateTime = c._Time,
         IsFavorite = c.IsFavorite.Value,
         CommentsCount = c.CommentsCount.Value,
         FavoritesCount = c.FavoritesCount,
         Images = db.SelectAlbumImages(c.FKAlbum_Id).Select(v => v),
         FooterValues = GetBottomBar(c.Id, c.FkCategory_Id, c.FkSubCategory_Id),
         AdPath = c._AdPath
     });
 }