示例#1
0
        //update UserThieu
        public async Task <bool> UpdateUserThieuAsync(UserThieu userThieu)
        {
            _context.UserThieu.Update(userThieu);
            await _context.SaveChangesAsync();

            return(true);
        }
示例#2
0
        //delete UserThieu
        public async Task <bool> DeleteUserThieuAsync(string id)
        {
            UserThieu userThieu = _context.UserThieu.Find(id);

            _context.Remove(userThieu);
            await _context.SaveChangesAsync();

            return(true);
        }