예제 #1
0
        public SectorModel ConvertSectorToSectorModel(Logic.Sector sector)
        {
            SectorModel sectorModel = new SectorModel();

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

            return(sectorModel);
        }
예제 #2
0
        public Logic.Sector ConvertSectorModelToSector(SectorModel sectorModel)
        {
            Logic.Sector sector = new Logic.Sector();

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

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