private AppSettingsDTO Map(tblSettings tbl)
 {
     var dto = new AppSettingsDTO
                   {
                       MasterId = tbl.Id,
                       DateCreated = tbl.IM_DateCreated,
                       DateLastUpdated = tbl.IM_DateLastUpdated,
                       StatusId = tbl.IM_Status,
                       Key = tbl.Key,
                       Value = tbl.Value
                   };
     return dto;
 }
Пример #2
0
 public AppSettings Map(AppSettingsDTO dto)
 {
     if (dto == null) return null;
     var appSettings = Mapper.Map<AppSettingsDTO, AppSettings>(dto);
     return appSettings;
 }