//update UserThieu public async Task <bool> UpdateUserThieuAsync(UserThieu userThieu) { _context.UserThieu.Update(userThieu); await _context.SaveChangesAsync(); return(true); }
//delete UserThieu public async Task <bool> DeleteUserThieuAsync(string id) { UserThieu userThieu = _context.UserThieu.Find(id); _context.Remove(userThieu); await _context.SaveChangesAsync(); return(true); }