43 lines
1.2 KiB
C#

using Manager.DTOs;
using System.ComponentModel.DataAnnotations;
using System.Linq;
namespace ManagerService.Data.SubSection
{
/// <summary>
/// Section web
/// </summary>
public class SectionWeb : Section
{
[Required]
public string WebSource { get; set; } // url to resource id (local) or on internet
public WebDTO ToDTO()
{
return new WebDTO()
{
id = Id,
label = Label,
title = Title.ToList(),
description = Description.ToList(),
order = Order,
type = Type,
imageId = ImageId,
imageSource = ImageSource,
configurationId = ConfigurationId,
isSubSection = IsSubSection,
parentId = ParentId,
dateCreation = DateCreation,
instanceId = InstanceId,
isBeacon = IsBeacon,
beaconId = BeaconId,
latitude = Latitude,
longitude = Longitude,
meterZoneGPS = MeterZoneGPS,
source = WebSource
};
}
}
}