Feat: Selector de Contacto Independiente y Formato de Precio
- Se divide la selección de medios de contacto entre los datos del usuario, permitiendo mostras el tipo de contacto que prefiera. - Cuando el precio es igual a 0, se muestra la palabra "Consultar" en lugar de $0 o ARS 0.
This commit is contained in:
@@ -326,6 +326,9 @@ public class AdsV2Controller : ControllerBase
|
||||
contactPhone = ad.ContactPhone,
|
||||
contactEmail = ad.ContactEmail,
|
||||
displayContactInfo = ad.DisplayContactInfo,
|
||||
showPhone = ad.ShowPhone,
|
||||
allowWhatsApp = ad.AllowWhatsApp,
|
||||
showEmail = ad.ShowEmail,
|
||||
photos = ad.Photos.Select(p => new { p.PhotoID, p.FilePath, p.IsCover, p.SortOrder }),
|
||||
features = ad.Features.Select(f => new { f.FeatureKey, f.FeatureValue }),
|
||||
brand = ad.Brand != null ? new { id = ad.Brand.BrandID, name = ad.Brand.Name } : null,
|
||||
@@ -432,6 +435,9 @@ public class AdsV2Controller : ControllerBase
|
||||
ContactPhone = request.ContactPhone,
|
||||
ContactEmail = request.ContactEmail,
|
||||
DisplayContactInfo = request.DisplayContactInfo,
|
||||
ShowPhone = request.ShowPhone,
|
||||
AllowWhatsApp = request.AllowWhatsApp,
|
||||
ShowEmail = request.ShowEmail,
|
||||
|
||||
CreatedAt = DateTime.UtcNow
|
||||
};
|
||||
@@ -655,6 +661,9 @@ public class AdsV2Controller : ControllerBase
|
||||
ad.ContactPhone = updatedAdDto.ContactPhone;
|
||||
ad.ContactEmail = updatedAdDto.ContactEmail;
|
||||
ad.DisplayContactInfo = updatedAdDto.DisplayContactInfo;
|
||||
ad.ShowPhone = updatedAdDto.ShowPhone;
|
||||
ad.AllowWhatsApp = updatedAdDto.AllowWhatsApp;
|
||||
ad.ShowEmail = updatedAdDto.ShowEmail;
|
||||
// Nota: IsFeatured y otros campos sensibles se manejan por separado (pago/admin)
|
||||
|
||||
// LÓGICA DE ESTADO TRAS RECHAZO
|
||||
|
||||
Reference in New Issue
Block a user