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); } }
public static DataContracts.DualAppShortcutSetting ToDualAppShortcutSettingContract(DataRows.DualAppShortcutSetting row) { return(AutoMapper.Mapper.Map <DataContracts.DualAppShortcutSetting>(row)); }