public SectorModel ConvertSectorToSectorModel(Logic.Sector sector)
        {
            SectorModel sectorModel = new SectorModel();

            sectorModel.Id   = sector.Id;
            sectorModel.Name = sector.Name;

            return(sectorModel);
        }
        public Logic.Sector ConvertSectorModelToSector(SectorModel sectorModel)
        {
            Logic.Sector sector = new Logic.Sector();

            sector.Id   = sectorModel.Id;
            sector.Name = sectorModel.Name;

            return(sector);
        }
Beispiel #3
0
 public SectorDTO(Logic.Sector sector)
 {
     this.Id   = sector.Id;
     this.Name = sector.Name;
 }