Exemple #1
0
        public int UpdateUser(User user)
        {
            using (var db = DbContext.Instance.GetDbConnection())
            {
                var result = db.Update(user);

                return result;
            }
        }
Exemple #2
0
        public async Task<int> UpdateUserAsync(User user)
        {
            var result = await Conn.UpdateAsync(user);

            return result;
        }
Exemple #3
0
        public async Task<int> InsertUserAsync(User user)
        {
            var result = await Conn.InsertAsync(user);

            return result;
        }