コード例 #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;
 }