Esempio n. 1
0
        public ETL.Contracts.DualAppShortcutSetting GetDualAppSettings(int appID)
        {
            try
            {
                DualAppShortcutSetting settings = (from d in dataContext.DualAppShortcutSettings
                                                   where d.AppID == appID
                                                   select d).FirstOrDefault();

                return(DataTransform.ToDualAppShortcutSettingContract(settings));
            }
            catch (Exception ex)
            {
                throw HandleException(ex);
            }
        }
Esempio n. 2
0
 public static DataContracts.DualAppShortcutSetting ToDualAppShortcutSettingContract(DataRows.DualAppShortcutSetting row)
 {
     return(AutoMapper.Mapper.Map <DataContracts.DualAppShortcutSetting>(row));
 }