예제 #1
0
        public static DataAccessAction <AppPreferences> UpdateAppPreferences(AppPreferences appPreferences)
        {
            appPreferences.Validate();
            appPreferences.Id = 1;

            return(new DataAccessAction <AppPreferences>((IDbConnection conn) =>
            {
                conn.Update(appPreferences);
                return appPreferences;
            }));
        }